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-js-if-elseif-blo.../_config.js

23 lines
499 B

export default {
data: {
x: false,
y: true
},
test ( assert, component, target, window, raf ) {
assert.equal( target.querySelector( 'div' ), component.refs.no );
component.set({ x: true, y: false });
raf.tick( 25 );
assert.equal( component.refs.yes.foo, undefined );
assert.equal( component.refs.no.foo, 0.75 );
raf.tick( 75 );
assert.equal( component.refs.yes.foo, undefined );
assert.equal( component.refs.no.foo, 0.25 );
raf.tick( 100 );
component.destroy();
}
};