Skip to content

Commit

Permalink
test importing non-component
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 9, 2016
1 parent 07ce823 commit 941de39
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/server-side-rendering/import-non-component/_actual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div>i got 99 problems</div>
<div>the answer is 42</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div>i got 99 problems</div>
<div>the answer is 42</div>
1 change: 1 addition & 0 deletions test/server-side-rendering/import-non-component/answer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = 42;
13 changes: 13 additions & 0 deletions test/server-side-rendering/import-non-component/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div>i got {{problems}} problems</div>
<div>the answer is {{answer}}</div>

<script>
import answer from './answer.js';
import problems from './problems.js';

export default {
data () {
return { answer, problems };
}
};
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default 99;

0 comments on commit 941de39

Please sign in to comment.