Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lubega-deriv committed Dec 27, 2024
1 parent f2756ae commit 99d3560
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('AccountsList', () => {
data: false,
isLoading: false,
});
(useGrowthbookIsOn as jest.Mock).mockReturnValue([true]);
(useGrowthbookIsOn as jest.Mock).mockReturnValue([true, true]);
});

afterAll(() => {
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('AccountsList', () => {
});

it('does not render P2P redirection banner if growthbook is not loaded', () => {
(useGrowthbookIsOn as jest.Mock).mockReturnValue([false]);
(useGrowthbookIsOn as jest.Mock).mockReturnValue([false, true]);
render(<AccountsList />, { wrapper });

expect(screen.queryByText('Easily exchange USD with local currency using Deriv P2P.')).not.toBeInTheDocument();
Expand Down

0 comments on commit 99d3560

Please sign in to comment.