Skip to content

Commit

Permalink
Make tests work when running all of them together.
Browse files Browse the repository at this point in the history
They were only passing when running just the runtime tests, but failing with `<button>undefined</button>` when running all the tests.
  • Loading branch information
jacwright committed Mar 26, 2018
1 parent 9b0a884 commit 297ee65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/runtime/samples/action-this/_config.js
Original file line number Diff line number Diff line change
@@ -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>` );
}
Expand Down

0 comments on commit 297ee65

Please sign in to comment.