Skip to content

Commit

Permalink
Adds test for setting the source property
Browse files Browse the repository at this point in the history
  • Loading branch information
willik committed Sep 30, 2019
1 parent adef093 commit 511510e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/resources/appointment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ it('can set the service property using a multiple numbers', async () => {
});
});

it('can set the source property', async () => {
const resource = new Appointment(mockAxios);

expect(resource.source('test source')).toHaveProperty('filters', {
source: 'test source',
});
});

it('can set the notifications property', async () => {
const resource = new Appointment(mockAxios);
const notifications: AppointmentNotificationParameters = {
Expand Down

0 comments on commit 511510e

Please sign in to comment.