Skip to content

Commit

Permalink
Fixes #37070 - BreadcrumbBar.test.js missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and ofedoren committed Jan 24, 2024
1 parent ebaa453 commit 066dd49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('BreadcrumbBar', () => {
expect(props.closeSwitcher.mock.calls).toHaveLength(0);
expect(props.loadSwitcherResourcesByResource.mock.calls).toHaveLength(0);

act(async () =>
await act(async () =>
fireEvent.click(screen.getByLabelText('open breadcrumb switcher'))
);
expect(props.openSwitcher.mock.calls).toHaveLength(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Array [
"switcherItemUrl": "some/url/:id",
},
Object {
"page": 2,
"page": 3,
"perPage": 10,
"searchQuery": "some value",
},
Expand All @@ -110,7 +110,7 @@ Array [
"switcherItemUrl": "some/url/:id",
},
Object {
"page": 1,
"page": 2,
"perPage": 10,
"searchQuery": "some value",
},
Expand Down

0 comments on commit 066dd49

Please sign in to comment.