Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pirelenito committed Nov 14, 2023
1 parent 7e1d88c commit 8b542ed
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/@react-facet/dom-fiber/src/setupHostConfig.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1170,11 +1170,17 @@ describe('update', () => {

render(<MockComponent />)
expect(root?.innerHTML ?? '').toBe('<p cohinline=""></p>')
jest.advanceTimersByTime(1)
act(() => {
jest.advanceTimersByTime(1)
})
expect(root?.innerHTML ?? '').toBe('<p></p>')
jest.advanceTimersByTime(1)
act(() => {
jest.advanceTimersByTime(1)
})
expect(root?.innerHTML ?? '').toBe('<p cohinline=""></p>')
jest.advanceTimersByTime(1)
act(() => {
jest.advanceTimersByTime(1)
})
expect(root?.innerHTML ?? '').toBe('<p></p>')
})

Expand Down

0 comments on commit 8b542ed

Please sign in to comment.