0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 01:11:24 +01:00

add test for #891

This commit is contained in:
Rich Harris 2017-10-24 08:14:02 -04:00
parent 218dcacef8
commit 1dad8f1936
2 changed files with 15 additions and 0 deletions

View File

@ -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');
}
};

View File

@ -0,0 +1 @@
{{foo}}