Skip to content

Commit

Permalink
Tests: add missing await for waitFor statements
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <tsmock@meta.com>
  • Loading branch information
tsmock committed May 31, 2023
1 parent ec1d902 commit 1b41079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('MoreFiltersForm', () => {

expect(switchControl).toBeInTheDocument();
await user.click(switchControl);
waitFor(() =>
await waitFor(() =>
expect(
decodeQueryParams(
{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/tests/fallback.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ describe('Fallback component', () => {
name: messages.return.defaultMessage,
});
await user.click(returnBtn);
waitFor(() => expect(mockedUsedNavigate).toHaveBeenCalledTimes(1));
await waitFor(() => expect(mockedUsedNavigate).toHaveBeenCalledTimes(1));
});
});

0 comments on commit 1b41079

Please sign in to comment.