mirror of https://github.com/vuejs/core.git
test: fix await patch prop case (#7600)
This commit is contained in:
parent
957722c418
commit
734b06a124
|
|
@ -160,9 +160,10 @@ describe(`runtime-dom: events patching`, () => {
|
||||||
childFn()
|
childFn()
|
||||||
patchProp(el, 'onClick', null, parentFn)
|
patchProp(el, 'onClick', null, parentFn)
|
||||||
})
|
})
|
||||||
child.dispatchEvent(new Event('click', { bubbles: true }))
|
|
||||||
|
|
||||||
await timeout()
|
await timeout()
|
||||||
|
child.dispatchEvent(new Event('click', { bubbles: true }))
|
||||||
|
|
||||||
expect(childFn).toHaveBeenCalled()
|
expect(childFn).toHaveBeenCalled()
|
||||||
expect(parentFn).not.toHaveBeenCalled()
|
expect(parentFn).not.toHaveBeenCalled()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue