]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: fix await patch prop case (#7600)
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Wed, 1 Feb 2023 07:59:50 +0000 (15:59 +0800)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 07:59:50 +0000 (08:59 +0100)
packages/runtime-dom/__tests__/patchEvents.spec.ts

index 044f385ba17c35ce1da27405ad1b0f11f49c240f..a207331ad5675960238dd5b032981b2552dd4101 100644 (file)
@@ -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()
   })