Skip to content

Commit

Permalink
failing test for #222
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 28, 2017
1 parent 1655249 commit 7dff587
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/generator/deconflict-builtins/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
html: `<span>got</span>`,

test ( assert, component ) {
assert.equal( component.get( 'foo' ), 'got' );
component.teardown();
}
};
3 changes: 3 additions & 0 deletions test/generator/deconflict-builtins/get.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function get () {
return 'got';
}
13 changes: 13 additions & 0 deletions test/generator/deconflict-builtins/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<span>{{foo}}</span>

<script>
import get from './get.js';

export default {
data () {
return {
foo: get()
};
}
};
</script>

0 comments on commit 7dff587

Please sign in to comment.