Skip to content

Commit

Permalink
Fix AboutPage test console error output (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Dec 5, 2022
1 parent 27471d2 commit ed5a1c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/components/AboutPage/AboutPage.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ describe('AboutPage component', () => {
it('should render the about page with default values if api get request fails', async () => {
const stateValues = { flavor: 'N/A', subscriptions: 0, version: 'v0.0.0' };
const errorMessage = { messages: "Get request '/api/about' failed" };
jest.spyOn(console, 'error').mockImplementation(() => null);

await act(async () => {
renderWithRouter(
<AboutPage onFetch={() => Promise.reject(errorMessage)} />
Expand Down

0 comments on commit ed5a1c4

Please sign in to comment.