Skip to content

Commit

Permalink
fix: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Jun 4, 2024
1 parent a904828 commit 24098bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe('<AdvertiserAdvertsTable />', () => {

render(<AdvertiserAdvertsTable advertiserId='222' />);

expect(screen.getByText('ErrorModal')).toBeInTheDocument();
expect(screen.getAllByText('ErrorModal')).toHaveLength(2);
});

it('should show ErrorModal if advert is not active and visible, and error is undefined', () => {
Expand All @@ -240,7 +240,7 @@ describe('<AdvertiserAdvertsTable />', () => {

render(<AdvertiserAdvertsTable advertiserId='222' />);

expect(screen.getByText('ErrorModal')).toBeInTheDocument();
expect(screen.getAllByText('ErrorModal')).toHaveLength(2);
});

it('should call history.push if the advertiser is barred', () => {
Expand Down

0 comments on commit 24098bd

Please sign in to comment.