uncomment test

This commit is contained in:
Katie Kroell 2023-11-02 16:12:03 -04:00
parent 1b161ee5c6
commit e85362325e

View file

@ -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', () => {