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

25 lines
421 B

export default {
props: {
visible: true
},
test({ assert, component, target, window, 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);
}
};