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/flush-before-bindings/_config.js

21 lines
544 B

// import counter from './counter.js';
export default {
'skip-ssr': true,
html: `
<div><slot><p>first thing (true)</p></slot></div>
<div><slot><p>second thing (true)</p></slot></div>
`,
test(assert, component) {
const visibleThings = component.get('visibleThings');
assert.deepEqual(visibleThings, ['first thing', 'second thing']);
const snapshots = component.snapshots;
assert.deepEqual(snapshots, [visibleThings]);
// TODO minimise the number of recomputations during oncreate
// assert.equal(counter.count, 1);
}
};