Skip to content

Commit

Permalink
test(watchDebounced):watchDebounced make sure exceed maxwait time
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0day committed Oct 25, 2022
1 parent 5afae65 commit 4deddd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/watchDebounced/index.test.ts
Expand Up @@ -39,7 +39,7 @@ describe('watchDebounced', () => {
expect(cb).toHaveBeenCalledTimes(1)

num.value = 5
await promiseTimeout(70)
await promiseTimeout(75)
expect(cb).toHaveBeenCalledTimes(2)
expect(cb).toHaveBeenCalledWith(4, 2, expect.anything())
})
Expand Down

0 comments on commit 4deddd6

Please sign in to comment.