export default { async test({ assert, component, target, window, raf }) { const t = target.querySelector('#t'); await (component.condition = false); let time = 0; raf.tick(time += 25); assert.htmlEqual(target.innerHTML, `
TRUE
FALSE
`); // toggling back in the middle of the out transition // will reuse the previous element await (component.condition = true); assert.htmlEqual(target.innerHTML, `
FALSE
TRUE
`); assert.equal(target.querySelector('#t'), t); raf.tick(time += 25); assert.htmlEqual(target.innerHTML, `
FALSE
TRUE
`); raf.tick(time += 75); assert.htmlEqual(target.innerHTML, `
TRUE
`); } };