mirror of https://github.com/sveltejs/svelte
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.
25 lines
425 B
25 lines
425 B
6 years ago
|
export default {
|
||
|
data: {
|
||
|
visible: true
|
||
|
},
|
||
|
|
||
|
test(assert, component, target, window, raf) {
|
||
|
component.set({ 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);
|
||
|
},
|
||
|
};
|