export default { props: { threshold: 5 }, html: `
1
2
3
4
5
`, intro: true, test({ assert, component, target, window, raf }) { const divs = target.querySelectorAll('div'); assert.equal(divs[0].foo, 0); raf.tick(100); assert.equal(divs[0].foo, 1); component.threshold = 4; assert.equal(divs[4].foo, 1); raf.tick(200); assert.htmlEqual(target.innerHTML, `
1
2
3
4
`); component.threshold = 3; assert.equal(divs[3].foo, 1); raf.tick(300); assert.htmlEqual(target.innerHTML, `
1
2
3
`); } };