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-deferred-opti.../_config.js

24 lines
857 B

export default {
skip: true, // There's a nullpointer triggered by the test which wasn't caught by mocha for some reason. TODO reenable for Svelte 5
test({ assert, component, target }) {
component.visible = true;
const div_in = target.querySelector('#in');
const div_out = target.querySelector('#out');
const div_bothin = target.querySelector('#both-in');
const div_bothout = target.querySelector('#both-out');
assert.equal(div_in.directions, 'in,in');
assert.equal(div_out.directions, 'out');
assert.equal(div_bothin.directions, 'both');
assert.equal(div_bothout.directions, 'both');
return Promise.resolve().then(() => {
assert.equal(div_in.directions, 'in,in');
assert.equal(div_out.directions, 'out,out');
assert.equal(div_bothin.directions, 'both,in');
assert.equal(div_bothout.directions, 'both,out');
});
}
};