export default {
html: ' ',
ssrHtml: ' ',
async test({ assert, target, component, window }) {
const [input1, input2, inputFallback] = target.querySelectorAll('input');
assert.equal(component.getSubscriberCount(), 3);
input1.value = 'a';
await input1.dispatchEvent(new window.Event('input'));
input1.value = 'ab';
await input1.dispatchEvent(new window.Event('input'));
assert.equal(input1.value, 'ab');
assert.equal(input2.value, 'ab');
assert.equal(inputFallback.value, 'ab');
component.props = 'hello';
assert.htmlEqual(
target.innerHTML,
`
hello
hello
`
);
component.fallback = 'world';
assert.htmlEqual(
target.innerHTML,
`
hello
hello
world
`
);
}
};