uncomment test
This commit is contained in:
parent
1b161ee5c6
commit
e85362325e
1 changed files with 17 additions and 17 deletions
|
|
@ -2068,25 +2068,25 @@ describe('Store', () => {
|
|||
}));
|
||||
});
|
||||
});
|
||||
// describe('unsuccessful api call', () => {
|
||||
// it('api call throws exception', async () => {
|
||||
// // Arrange
|
||||
// expect.assertions(2);
|
||||
// const error = 'final deductible error';
|
||||
// globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.reject(error));
|
||||
describe('unsuccessful api call', () => {
|
||||
it('api call throws exception', async () => {
|
||||
// Arrange
|
||||
expect.assertions(2);
|
||||
const error = 'final deductible error';
|
||||
globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.reject(error));
|
||||
|
||||
// // Act
|
||||
// await store.getFinalDeductible().catch((e) => {
|
||||
// expect(e).toEqual(error);
|
||||
// });
|
||||
// Act
|
||||
await store.getFinalDeductible().catch((e) => {
|
||||
expect(e).toEqual(error);
|
||||
});
|
||||
|
||||
// // Assert
|
||||
// expect(globalMethods.callHttpClient).toHaveBeenCalledWith(expect.objectContaining({
|
||||
// method: endpoints.FinalDeductible.method,
|
||||
// endpoint: endpoints.FinalDeductible.url
|
||||
// }));
|
||||
// });
|
||||
// });
|
||||
// Assert
|
||||
expect(globalMethods.callHttpClient).toHaveBeenCalledWith(expect.objectContaining({
|
||||
method: endpoints.FinalDeductible.method,
|
||||
endpoint: endpoints.FinalDeductible.url
|
||||
}));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('updateDeductible method', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue