diff --git a/test/runtime/samples/lifecycle-next-tick/_config.js b/test/runtime/samples/lifecycle-next-tick/_config.js index 35a66f7a09..9ecd589d64 100644 --- a/test/runtime/samples/lifecycle-next-tick/_config.js +++ b/test/runtime/samples/lifecycle-next-tick/_config.js @@ -3,13 +3,13 @@ export default { const buttons = target.querySelectorAll('button'); const click = new window.MouseEvent('click'); - await buttons[0].dispatchEvent(click); + await (await buttons[0].dispatchEvent(click)); assert.deepEqual(component.snapshots, [ 'before 0', 'after 1' ]); - await buttons[0].dispatchEvent(click); + await (await buttons[0].dispatchEvent(click)); assert.deepEqual(component.snapshots, [ 'before 0', 'after 1', @@ -17,7 +17,7 @@ export default { 'after 2' ]); - await buttons[1].dispatchEvent(click); + await (await buttons[1].dispatchEvent(click)); assert.deepEqual(component.snapshots, [ 'before 0', 'after 1',