mirror of https://github.com/sveltejs/svelte
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.
20 lines
277 B
20 lines
277 B
5 years ago
|
export default {
|
||
|
props: {},
|
||
|
|
||
|
html: `
|
||
|
<div><p>i: 1</p>
|
||
|
<p>foo: foo</p>
|
||
|
<p>qux: named</p>
|
||
|
`,
|
||
|
|
||
|
test({ assert, component, target }) {
|
||
|
component.foo = 'lol';
|
||
|
|
||
|
assert.htmlEqual(target.innerHTML, `
|
||
|
<div><p>i: 2</p>
|
||
|
<p>foo: lol</p>
|
||
|
<p>qux: named</p>
|
||
|
`);
|
||
|
}
|
||
|
};
|