Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Oct 25, 2023
1 parent ab5e6cc commit ab7c046
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Settings/hooks/useBankingInformation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
});
}));
});
});

0 comments on commit ab7c046

Please sign in to comment.