Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Refs #126375 use waitFor as wait is deprecated and updated devDepende…
Browse files Browse the repository at this point in the history
…ncies for volto-slate
  • Loading branch information
ichim-david committed Feb 19, 2021
1 parent e249337 commit 8dbb012
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
"weak-key": "^1.0.2"
},
"devDependencies": {
"@testing-library/react": "9.5.0",
"@types/jest": "^25.2.3"
"@testing-library/react": "11.2.5",
"@testing-library/dom": "7.29.4",
"@types/jest": "26.0.20"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/editor/ui/ToolbarButton.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import configureStore from 'redux-mock-store';
import { Provider } from 'react-intl-redux';
import { wait, render } from '@testing-library/react';
import { waitFor, render } from '@testing-library/react';

import ToolbarButton from './ToolbarButton';

Expand All @@ -20,7 +20,7 @@ describe('ToolbarButton', () => {
<ToolbarButton />
</Provider>,
);
await wait(() => {
await waitFor(() => {
expect(asFragment()).toMatchSnapshot();
});
});
Expand Down

0 comments on commit 8dbb012

Please sign in to comment.