diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 66fbcbf6..1c895d3a 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -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', () => {