mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
fix(frontend): Await act calls in tests
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
2206349415
commit
614374768a
6 changed files with 11 additions and 11 deletions
|
@ -61,7 +61,7 @@ describe('motd modal', () => {
|
|||
expect(view.container).toMatchSnapshot()
|
||||
|
||||
const button = await screen.findByTestId('motd-dismiss')
|
||||
act(() => {
|
||||
await act(() => {
|
||||
button.click()
|
||||
})
|
||||
expect(view.container).toMatchSnapshot()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue