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.
21 lines
373 B
21 lines
373 B
5 years ago
|
export default {
|
||
|
html: `
|
||
|
<pre>{"a":1,"b":[1],"c":42}</pre>
|
||
|
<pre>{"a":false,"b":false,"c":false}</pre>
|
||
|
`,
|
||
|
|
||
|
ssrHtml: `
|
||
|
<pre>{"a":1,"b":[1],"c":42}</pre>
|
||
|
<pre>{}</pre>
|
||
|
`,
|
||
|
|
||
|
test({ assert, component, target }) {
|
||
|
component.a = 2;
|
||
|
|
||
|
assert.htmlEqual(target.innerHTML, `
|
||
|
<pre>{"a":2,"b":[1],"c":42}</pre>
|
||
|
<pre>{"a":true,"b":false,"c":false}</pre>
|
||
|
`);
|
||
|
}
|
||
|
};
|