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