Skip to content

Commit

Permalink
remove fireEvent from 'act' wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro-Melnyshyn committed Oct 16, 2023
1 parent 47c989d commit aa1061b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/BrowseResultsList/BrowseResultsList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe('BrowseResultsList', () => {
},
});

await act(async () => fireEvent.click(screen.getByText(defaultProps.browseData[2].fullCallNumber)));
fireEvent.click(screen.getByText(defaultProps.browseData[2].fullCallNumber))

Check failure on line 158 in src/components/BrowseResultsList/BrowseResultsList.test.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

Missing semicolon

Check failure on line 158 in src/components/BrowseResultsList/BrowseResultsList.test.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

Missing semicolon

expect(history.location.search).toContain('?filters=shared.true%2Cshared.false%2CtenantId.college');
});
Expand All @@ -181,7 +181,7 @@ describe('BrowseResultsList', () => {
browseData: contributorsData,
});

await act(async () => fireEvent.click(screen.getByText(contributorsData[0].name)));
fireEvent.click(screen.getByText(contributorsData[0].name))

Check failure on line 184 in src/components/BrowseResultsList/BrowseResultsList.test.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

Missing semicolon

Check failure on line 184 in src/components/BrowseResultsList/BrowseResultsList.test.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

Missing semicolon

expect(history.location.search).toContain(
'?filters=searchContributors.2b94c631-fca9-4892-a730-03ee529ffe2a%2Cshared.true%2Cshared.false%2CtenantId.college'
Expand Down Expand Up @@ -209,7 +209,7 @@ describe('BrowseResultsList', () => {
browseData: subjectsData,
});

await act(async () => fireEvent.click(screen.getByText(subjectsData[0].value)));
fireEvent.click(screen.getByText(subjectsData[0].value))

Check failure on line 212 in src/components/BrowseResultsList/BrowseResultsList.test.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

Missing semicolon

Check failure on line 212 in src/components/BrowseResultsList/BrowseResultsList.test.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

Missing semicolon

expect(history.location.search).toContain('?filters=shared.true%2Cshared.false%2CtenantId.college');
});
Expand Down

0 comments on commit aa1061b

Please sign in to comment.