Skip to content

Commit

Permalink
add template literal test and fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Chon committed Dec 5, 2016
1 parent 170b091 commit d36ff81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/__tests__/fixtures/component_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ export function foo() {
export function chained() {
return foo.bar().join();
}

export function templateLiteral() {
return `foo bar`.split(' ');
}
2 changes: 1 addition & 1 deletion src/utils/isStatelessComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function isValidCalleeType(type) {
'Identifier',
'CallExpression',
'ArrayExpression',
'TemplateLiteral'
'TemplateLiteral',
'Literal'
].indexOf(type) < 0;
}
Expand Down

0 comments on commit d36ff81

Please sign in to comment.