Skip to content

Commit 125290a

Browse files
committed
Add unit test to check if class can be used
1 parent 82984fb commit 125290a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/factory-name.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ var invalid = [];
2424
valid.push({
2525
code: 'app.factory("eslintFactory", function() {});',
2626
options: ['eslint']
27+
}, {
28+
code: 'app.factory("eslintFactory", EslintFactory); class EslintFactory {}',
29+
options: ['eslint'],
30+
parserOptions: {ecmaVersion: 6}
2731
}, {
2832
code: 'app.factory("eslintFactory", function() {});',
2933
options: [/^eslint/]

0 commit comments

Comments
 (0)