Skip to content

Commit

Permalink
test: fix await patch prop case (#7600)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 1, 2023
1 parent 957722c commit 734b06a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-dom/__tests__/patchEvents.spec.ts
Expand Up @@ -160,9 +160,10 @@ describe(`runtime-dom: events patching`, () => {
childFn()
patchProp(el, 'onClick', null, parentFn)
})
child.dispatchEvent(new Event('click', { bubbles: true }))

await timeout()
child.dispatchEvent(new Event('click', { bubbles: true }))

expect(childFn).toHaveBeenCalled()
expect(parentFn).not.toHaveBeenCalled()
})
Expand Down

0 comments on commit 734b06a

Please sign in to comment.