Skip to content

Commit

Permalink
Failing test for sveltejs#1356
Browse files Browse the repository at this point in the history
  • Loading branch information
aphitiel committed Apr 22, 2018
1 parent c51cfd7 commit 00fb978
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/runtime/samples/onstate-no-template/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
'skip-ssr': true,

data: {
foo: 'woo!'
},

test(assert, component) {
assert.deepEqual(component.changed, { foo: 1 });
}
};
7 changes: 7 additions & 0 deletions test/runtime/samples/onstate-no-template/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script>
export default {
onstate({ changed }) {
this.changed = changed;
}
};
</script>

0 comments on commit 00fb978

Please sign in to comment.