pull/1864/head
Rich Harris 7 years ago
parent 32e142c87b
commit 2fc75429e8

@ -8,14 +8,14 @@ export default {
skip: /^v4/.test(process.version), // node 4 apparently does some dumb stuff skip: /^v4/.test(process.version), // node 4 apparently does some dumb stuff
'skip-ssr': true, // there's some kind of weird bug with this test... it compiles with the wrong require.extensions hook for some bizarre reason 'skip-ssr': true, // there's some kind of weird bug with this test... it compiles with the wrong require.extensions hook for some bizarre reason
test(assert, component, target, window) { async test(assert, component, target, window) {
const event = new window.Event('click'); const event = new window.Event('click');
window.dispatchEvent(event); await window.dispatchEvent(event);
assert.equal(component.foo, false); assert.equal(component.foo, false);
assert.htmlEqual(target.innerHTML, `false`); assert.htmlEqual(target.innerHTML, `false`);
window.dispatchEvent(event); await window.dispatchEvent(event);
assert.equal(component.foo, true); assert.equal(component.foo, true);
assert.htmlEqual(target.innerHTML, `true`); assert.htmlEqual(target.innerHTML, `true`);
} }

Loading…
Cancel
Save