Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Nov 27, 2023
1 parent 02119ce commit 545172c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ describe('useBuildQuery', () => {
it('should include banking information index in the query if a user has the appropriate permission', () => {
const { result } = renderHook(() => useBuildQuery());

expect(result.current(params)).toEqual(expect.stringContaining('bankingInformation.bankAccountNumber="qwerty*"'));
expect(result.current(params)).toContain('bankingInformation.bankAccountNumber="qwerty*"');
});

it('should NOT include banking information index in the query if a user does not have the appropriate permission', async () => {
stripesStub.hasPerm.mockReturnValue(false);

const { result } = renderHook(() => useBuildQuery());

expect(result.current(params)).toEqual(expect.not.stringContaining('bankingInformation.bankAccountNumber="qwerty*"'));
expect(result.current(params)).not.toContain('bankingInformation.bankAccountNumber="qwerty*"');
});
});
});

0 comments on commit 545172c

Please sign in to comment.