mirror of https://github.com/sveltejs/svelte
commit
6012c965ac
@ -0,0 +1,13 @@
|
||||
export default {
|
||||
data: { foo: null },
|
||||
|
||||
html: 'foo is null',
|
||||
|
||||
test(assert, component, target) {
|
||||
component.set({ foo: 42 });
|
||||
assert.htmlEqual(target.innerHTML, 'foo is 42');
|
||||
|
||||
component.set({ foo: null });
|
||||
assert.htmlEqual(target.innerHTML, 'foo is null');
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
foo is {foo}
|
Loading…
Reference in new issue