You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/transition-css-deferred-rem.../_config.js

19 lines
410 B

export default {
get props() {
return { visible: true };
},
test({ assert, component, target, raf }) {
component.visible = false;
const outer = target.querySelector('.outer');
const inner = target.querySelector('.inner');
const animations = [outer.style.animation, inner.style.animation];
raf.tick(150);
assert.deepEqual([outer.style.animation, inner.style.animation], animations);
}
};