Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkine committed Apr 20, 2020
1 parent 486a9ba commit cffeb65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export default {
async test({ assert, target, window, raf }) {
const button = target.querySelector("button");
const event = new window.MouseEvent("click");
assert.htmlEqual(target.innerHTML, "A");
assert.htmlEqual(target.innerHTML, "<button>TOGGLE</button><div>A</div>");
await button.dispatchEvent(event);
raf.tick(500);
assert.htmlEqual(target.innerHTML, "A");
assert.htmlEqual(target.innerHTML, "<button>TOGGLE</button><div>A</div>");
},
};

0 comments on commit cffeb65

Please sign in to comment.