Skip to content

Commit 734b06a

Browse files
authored
test: fix await patch prop case (#7600)
1 parent 957722c commit 734b06a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-dom/__tests__/patchEvents.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,10 @@ describe(`runtime-dom: events patching`, () => {
160160
childFn()
161161
patchProp(el, 'onClick', null, parentFn)
162162
})
163-
child.dispatchEvent(new Event('click', { bubbles: true }))
164163

165164
await timeout()
165+
child.dispatchEvent(new Event('click', { bubbles: true }))
166+
166167
expect(childFn).toHaveBeenCalled()
167168
expect(parentFn).not.toHaveBeenCalled()
168169
})

0 commit comments

Comments
 (0)