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/packages/svelte/test/runtime/samples/binding-this-transition-js-.../_config.js

14 lines
284 B

export default {
get props() {
return { show: 'a' };
},
test({ assert, component, target, raf }) {
assert.equal(component.el, target.querySelector('div.first'));
component.show = 'b';
raf.tick(200);
assert.equal(component.el, target.querySelector('div.second'));
}
};