export default {
props: {
x: true
},
html: `
a
`,
test({ assert, component, target, window, raf }) {
component.x = false;
assert.htmlEqual(target.innerHTML, `
a
b
`);
const [a, b] = target.querySelectorAll('div');
raf.tick(25);
assert.equal(a.a, 0.75);
assert.equal(b.b, 0.25);
raf.tick(100);
assert.equal(a.a, 0);
assert.equal(b.b, 1);
assert.htmlEqual(target.innerHTML, `
b
`);
}
};