mirror of https://github.com/sveltejs/svelte
Failing test for #1356
parent
c51cfd7689
commit
00fb978924
@ -0,0 +1,11 @@
|
||||
export default {
|
||||
'skip-ssr': true,
|
||||
|
||||
data: {
|
||||
foo: 'woo!'
|
||||
},
|
||||
|
||||
test(assert, component) {
|
||||
assert.deepEqual(component.changed, { foo: 1 });
|
||||
}
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
export default {
|
||||
onstate({ changed }) {
|
||||
this.changed = changed;
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue