From ab7c046d6265ace7c7700b31fec3618995836ca2 Mon Sep 17 00:00:00 2001 From: Alisher Musurmonov Date: Wed, 25 Oct 2023 10:49:59 +0500 Subject: [PATCH] test: fix failing tests --- src/Settings/hooks/useBankingInformation.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Settings/hooks/useBankingInformation.test.js b/src/Settings/hooks/useBankingInformation.test.js index 1fe01567..03046dfe 100644 --- a/src/Settings/hooks/useBankingInformation.test.js +++ b/src/Settings/hooks/useBankingInformation.test.js @@ -17,6 +17,7 @@ const MOCK_BANKING_INFORMATION = { 'id': 'cb007def-4b68-496c-ad78-ea8e039e819d', 'key': 'BANKING_INFORMATION_ENABLED', 'value': 'true', + refetch: jest.fn(), }; // eslint-disable-next-line react/prop-types @@ -42,11 +43,11 @@ describe('useBankingInformation', () => { await waitFor(() => expect(result.current.isLoading).toBeFalsy()); - expect(result.current).toEqual({ + expect(result.current).toEqual(expect.objectContaining({ enabled: true, isLoading: false, id: MOCK_BANKING_INFORMATION.id, key: MOCK_BANKING_INFORMATION.key, - }); + })); }); });