export default {
html: '',
async test({ assert, component, target, raf }) {
await component.add();
await component.add();
let time = 0;
assert.htmlEqual(
target.innerHTML,
`
`
);
raf.tick((time += 400));
assert.htmlEqual(
target.innerHTML,
`
`
);
await component.toggle();
// transition halfway
raf.tick((time += 200));
assert.htmlEqual(
target.innerHTML,
`
`
);
await component.toggle();
// transition back
raf.tick((time += 200));
assert.htmlEqual(
target.innerHTML,
`
`
);
await component.remove(1);
raf.tick((time += 400));
assert.htmlEqual(
target.innerHTML,
`
`
);
}
};