export default {
props: {
visible: false,
threshold: 5
},
html: `
1
2
3
4
5
`,
test({ assert, component, target, window, raf }) {
const divs = target.querySelectorAll('div');
raf.tick(100);
component.threshold = 4;
raf.tick(150);
component.threshold = 5;
raf.tick(200);
component.threshold = 5.5;
assert.htmlEqual(target.innerHTML, `
1
2
3
4
5
`);
}
};