diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 9fc8f865..ce0fc9fd 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -1104,4 +1104,22 @@ describe('Store', () => { expect(store.isDropOffAppointment).toBe(false); }); }); + + describe('getFinalDeductible method', () => { + describe('successful method call', () => { + it.only('calls get final deductible api endpoint', () => { + // Arrange + globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.resolve({})); + + // Act + store.getFinalDeductible(); + + // Assert + expect(globalMethods.callHttpClient).toHaveBeenCalledWith(expect.objectContaining({ + method: endpoints.FinalDeductible.method, + endpoint: endpoints.FinalDeductible.url, + })); + }); + }); + }); });