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/component-binding-blowback-b/_config.js

31 lines
507 B

export default {
'skip-ssr': true,
7 years ago
data: {
ids: ['id-0', 'id-1', 'id-2']
},
html: `
<ol>
<li>id-0: value is zero</li>
<li>id-1: value is one</li>
<li>id-2: value is two</li>
</ol>
`,
7 years ago
test (assert, component, target) {
component.set({
ids: ['id-0', 'id-1', 'id-2', 'id-3']
});
assert.htmlEqual(target.innerHTML, `
<ol>
<li>id-0: value is zero</li>
<li>id-1: value is one</li>
<li>id-2: value is two</li>
<li>id-3: value is three</li>
</ol>
`);
}
};