Skip to content

Commit

Permalink
failing test for #1327
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed May 1, 2018
1 parent 01cdffa commit 9ac0c40
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/runtime/samples/store-computed-oncreate/_config.js
@@ -0,0 +1,9 @@
import { Store } from '../../../../store.js';

export default {
store: new Store(),

html: `
<h1>Hello Brian!</h1>
`
};
10 changes: 10 additions & 0 deletions test/runtime/samples/store-computed-oncreate/main.html
@@ -0,0 +1,10 @@
<h1>Hello {$name}!</h1>

<script>
export default {
oncreate() {
this.store.set({ user: { name: 'Brian' } });
this.store.compute('name', ['user'], user => user && user.name);
}
};
</script>

0 comments on commit 9ac0c40

Please sign in to comment.