export default {
props: {
visible: true,
things: ['a', 'b', 'c']
},
test({ assert, component, target, raf }) {
assert.htmlEqual(target.innerHTML, `
a
b
c
`);
component.things = ['a'];
raf.tick(100);
assert.htmlEqual(target.innerHTML, `
a
`);
component.visible = false;
raf.tick(200);
assert.htmlEqual(target.innerHTML, '');
}
};