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