mirror of https://github.com/sveltejs/svelte
17 lines
426 B
17 lines
426 B
export default {
|
|
skip_if_ssr: true, // SSR behaviour is awkwardly different
|
|
|
|
props: {
|
|
foo: 42
|
|
},
|
|
|
|
html: `<textarea></textarea>`,
|
|
|
|
test({ assert, component, target }) {
|
|
const textarea = target.querySelector( 'textarea' );
|
|
assert.strictEqual( textarea.value, `\n\t<p>not actually an element. 42</p>\n` );
|
|
|
|
component.foo = 43;
|
|
assert.strictEqual( textarea.value, `\n\t<p>not actually an element. 43</p>\n` );
|
|
}
|
|
}; |