mirror of https://github.com/sveltejs/svelte
add test for #891
parent
218dcacef8
commit
1dad8f1936
@ -0,0 +1,14 @@
|
|||||||
|
const data = { foo: 0 };
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data,
|
||||||
|
|
||||||
|
html: '0',
|
||||||
|
|
||||||
|
test(assert, component, target) {
|
||||||
|
data.foo = 42;
|
||||||
|
component.set(data);
|
||||||
|
|
||||||
|
assert.htmlEqual(target.innerHTML, '42');
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1 @@
|
|||||||
|
{{foo}}
|
Loading…
Reference in new issue