From e85362325e75039f895ca857c3d9c51e8d30ac34 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Thu, 2 Nov 2023 16:12:03 -0400 Subject: [PATCH] uncomment test --- src/store/store.spec.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) 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', () => {