eslint-plugin-angular
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "eslint-plugin-angular", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "ESLint rules for AngularJS projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -106,3 +106,3 @@ (function(){ | ||
isAngularRunSection: function(node){ | ||
return this.isMemberExpression(node.callee) && node.callee.property.type === 'Identifier' && node.callee.property.name === 'run'; | ||
return this.isMemberExpression(node.callee) && node.callee.property.type === 'Identifier' && node.callee.property.name === 'run' && (node.callee.object.type === 'Identifier' && node.callee.object.name !== 'mocha'); | ||
}, | ||
@@ -109,0 +109,0 @@ |
@@ -89,2 +89,5 @@ //------------------------------------------------------------------------------ | ||
args: [1, 'array'] | ||
}, { | ||
code: 'mocha.run();', | ||
args: [1, 'array'] | ||
}) | ||
@@ -91,0 +94,0 @@ //------------------------------------------------------------------------------ |
@@ -36,3 +36,4 @@ //------------------------------------------------------------------------------ | ||
'it("test", function(){})', | ||
'$provide.value("accountsService", accountsService)' | ||
'$provide.value("accountsService", accountsService)', | ||
'mocha.run();', | ||
], | ||
@@ -39,0 +40,0 @@ invalid: [{ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146876
2637