Skip to content

Commit

Permalink
Updates existing test to ensure that when setting an attendee alias, …
Browse files Browse the repository at this point in the history
…it propagates to the request format correctly
  • Loading branch information
craigpaul committed Aug 11, 2020
1 parent 15473ef commit 41b1658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/attendee.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ it('can set an identifier for the attendee', async () => {
it('can set an external identifier for the attendee', async () => {
const attendee = new Attendee();

expect(attendee.alias("ABC-123").getAttributes()).toEqual(
expect(attendee.alias('ABC-123').getAttributes()).toEqual(
expect.objectContaining({
alias: "ABC-123",
alias: 'ABC-123',
}),
);
})
Expand Down
2 changes: 2 additions & 0 deletions src/resources/appointment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ it('can book an appointment with all available parameters', async () => {
.actingAs(10)
.with(
attendee
.alias('ABC-123')
.named('Jane', 'Doe')
.reachable({
cell_phone: '5555555555',
Expand Down Expand Up @@ -274,6 +275,7 @@ it('can book an appointment with all available parameters', async () => {
city: 'Fake City',
country: 'FC',
email: '[email protected]',
external_id: 'ABC-123',
first_name: 'Jane',
lang: 'es',
last_name: 'Doe',
Expand Down

0 comments on commit 41b1658

Please sign in to comment.