mirror of https://github.com/sveltejs/svelte
failing test for #1598
parent
814a32357f
commit
7042f5d2cb
@ -0,0 +1,22 @@
|
||||
const data = { foo: null };
|
||||
|
||||
export default {
|
||||
data,
|
||||
|
||||
html: '',
|
||||
|
||||
test(assert, component, target) {
|
||||
assert.htmlEqual(target.innerHTML, 'hi there');
|
||||
|
||||
data.foo = 'friend';
|
||||
component.set(data);
|
||||
|
||||
assert.htmlEqual(target.innerHTML, 'hi there friend');
|
||||
|
||||
data.foo = null;
|
||||
component.set(data);
|
||||
|
||||
assert.htmlEqual(target.innerHTML, 'hi there');
|
||||
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
hi there {foo}
|
Loading…
Reference in new issue