mirror of https://github.com/sveltejs/svelte
parent
b2ea03dde0
commit
70431dd794
@ -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, '42' );
|
||||
|
||||
component.set({ foo: 43 });
|
||||
assert.strictEqual( textarea.value, '43' );
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
<textarea value='{{foo}}'/>
|
Loading…
Reference in new issue