From 003dfa1ddecffa81ce9610c5ffbfbd369b6e8a90 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 30 Jan 2019 15:19:51 -0500 Subject: [PATCH] update test --- test/runtime/samples/lifecycle-next-tick/_config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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',