start of store unit tests
This commit is contained in:
parent
dac7637bdf
commit
e23645eb02
1 changed files with 18 additions and 0 deletions
|
|
@ -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,
|
||||
}));
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue