export default {
props: {
show: true
},
html: `
`,
async test({ assert, component, target, window }) {
const click = new window.MouseEvent('click');
await target.querySelector('button').dispatchEvent(click);
assert.equal(component.show, false);
assert.htmlEqual(target.innerHTML, `
`);
await target.querySelector('button').dispatchEvent(click);
assert.equal(component.show, true);
assert.htmlEqual(target.innerHTML, `
`);
}
};