Make tests work when running all of them together.

They were only passing when running just the runtime tests, but failing with `<button>undefined</button>` when running all the tests.
pull/1279/head
Jacob Wright 7 years ago
parent 9b0a884035
commit 297ee65737

@ -1,10 +1,9 @@
export default {
html: `<button>0</button>`,
test ( assert, component, target, window ) {
const button = target.querySelector( 'button' );
const click = new window.MouseEvent( 'click' );
assert.htmlEqual( target.innerHTML, `<button>0</button>` );
button.dispatchEvent( click );
assert.htmlEqual( target.innerHTML, `<button>1</button>` );
}

Loading…
Cancel
Save