Skip to content

Commit

Permalink
Add unit test to check if class can be used
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Apr 11, 2017
1 parent 82984fb commit 125290a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/factory-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ var invalid = [];
valid.push({
code: 'app.factory("eslintFactory", function() {});',
options: ['eslint']
}, {
code: 'app.factory("eslintFactory", EslintFactory); class EslintFactory {}',
options: ['eslint'],
parserOptions: {ecmaVersion: 6}
}, {
code: 'app.factory("eslintFactory", function() {});',
options: [/^eslint/]
Expand Down

0 comments on commit 125290a

Please sign in to comment.