diff --git a/packages/runtime-dom/__tests__/patchEvents.spec.ts b/packages/runtime-dom/__tests__/patchEvents.spec.ts index 044f385ba17..a207331ad56 100644 --- a/packages/runtime-dom/__tests__/patchEvents.spec.ts +++ b/packages/runtime-dom/__tests__/patchEvents.spec.ts @@ -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() })