mirror of https://github.com/sveltejs/svelte
parent
8d2607c37d
commit
b828fdf855
@ -0,0 +1,17 @@
|
||||
export default {
|
||||
'skip-ssr': true, // SSR behaviour is awkwardly different
|
||||
|
||||
data: {
|
||||
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.set({ foo: 43 });
|
||||
assert.strictEqual( textarea.value, `\n\t<p>not actually an element. 43</p>\n` );
|
||||
}
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
<textarea>
|
||||
<p>not actually an element. {{foo}}</p>
|
||||
</textarea>
|
Loading…
Reference in new issue