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