-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensures a booker identifier can be sent when adding attendees to exis…
…ting appointments
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,7 +290,7 @@ it('can add the given attendee to the given appointment', async () => { | |
const resource = new Appointment(mockAxios); | ||
const attendee = (new Attendee()).named('Jane', 'Doe').reachable({ email: '[email protected]' }); | ||
|
||
await resource.with(attendee).add(1); | ||
await resource.with(attendee).actingAs(10).add(1); | ||
|
||
expect(mockAxios.put).toHaveBeenCalledTimes(1); | ||
expect(mockAxios.put).toHaveBeenCalledWith('appointments/1/attendees', { | ||
|
@@ -304,6 +304,9 @@ it('can add the given attendee to the given appointment', async () => { | |
type: 'attendees', | ||
} | ||
], | ||
meta: { | ||
booker: 10, | ||
}, | ||
}, { | ||
headers: { | ||
'Content-Type': 'application/json; ext=bulk', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters