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/generator/select/_config.js

37 lines
574 B

export default {
data: {
item: {
name: 'One',
key: 'a'
}
},
html: `
<select>
<option value="a">One</option>
<option value="b">Two</option>
<option value="c">Three</option>
</select>
`,
test ( assert, component, target ) {
component.set({ item:
{
name: 'One',
key: 'a'
}
})
assert.htmlEqual( target.innerHTML,`
<select>
<option value="a">One</option>
<option value="b">Two</option>
<option value="c">Three</option>
</select>
`);
component.teardown();
assert.htmlEqual( target.innerHTML, '' );
}
};