From 511510e65cf3f5bdc07ca961f21e606b0c676cef Mon Sep 17 00:00:00 2001 From: Willis Kirkham <743117+willik@users.noreply.github.com> Date: Mon, 30 Sep 2019 15:23:15 -0600 Subject: [PATCH] Adds test for setting the source property --- src/resources/appointment.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/resources/appointment.test.ts b/src/resources/appointment.test.ts index 2706567..dfe95f6 100644 --- a/src/resources/appointment.test.ts +++ b/src/resources/appointment.test.ts @@ -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 = {