mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
fix(frontend): Add generic type to act calls to trigger promise generation
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e5359a69ca
commit
9c3858797f
6 changed files with 11 additions and 11 deletions
|
@ -77,7 +77,7 @@ describe('create non existing note hint', () => {
|
|||
const onNoteCreatedCallback = jest.fn()
|
||||
const view = render(<CreateNonExistingNoteHint onNoteCreated={onNoteCreatedCallback}></CreateNonExistingNoteHint>)
|
||||
const button = await screen.findByTestId('createNoteButton')
|
||||
await act(() => {
|
||||
await act<void>(() => {
|
||||
button.click()
|
||||
})
|
||||
await waitFor(async () => {
|
||||
|
@ -92,7 +92,7 @@ describe('create non existing note hint', () => {
|
|||
const onNoteCreatedCallback = jest.fn()
|
||||
const view = render(<CreateNonExistingNoteHint onNoteCreated={onNoteCreatedCallback}></CreateNonExistingNoteHint>)
|
||||
const button = await screen.findByTestId('createNoteButton')
|
||||
await act(() => {
|
||||
await act<void>(() => {
|
||||
button.click()
|
||||
})
|
||||
await waitFor(async () => {
|
||||
|
@ -107,7 +107,7 @@ describe('create non existing note hint', () => {
|
|||
const onNoteCreatedCallback = jest.fn()
|
||||
const view = render(<CreateNonExistingNoteHint onNoteCreated={onNoteCreatedCallback}></CreateNonExistingNoteHint>)
|
||||
const button = await screen.findByTestId('createNoteButton')
|
||||
await act(() => {
|
||||
await act<void>(() => {
|
||||
button.click()
|
||||
})
|
||||
await waitFor(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue