mirror of
https://github.com/re-rxjs/react-rxjs.git
synced 2025-12-08 18:01:51 +00:00
Make useObservable tests a bit more stable
This commit is contained in:
parent
169df5cf30
commit
3b91ba33a3
@ -26,13 +26,13 @@ describe("useObservable", () => {
|
||||
expect(result.current).toBe(null)
|
||||
|
||||
await act(async () => {
|
||||
await wait(10)
|
||||
await wait(15)
|
||||
})
|
||||
expect(result.current).toEqual(1)
|
||||
expect(counter).toBe(1)
|
||||
|
||||
await act(async () => {
|
||||
await wait(40)
|
||||
await wait(45)
|
||||
})
|
||||
|
||||
expect(result.current).toEqual(4)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user