You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/ng_deferred.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ var rule = require('../rules/ng_deferred'),
12
12
vareslintTester=newRuleTester();
13
13
eslintTester.run('ng_deferred',rule,{
14
14
valid: [
15
-
'$qs(function(){});'
15
+
'$q(function(){});'
16
16
],
17
17
invalid: [
18
-
{code: 'var deferred = $q.deferred;',errors: [{message: 'You should not create a new promise with this syntax. Use the $q(function(resolve, reject){}) syntax.'}]}
18
+
{code: 'var deferred = $q.defer();',errors: [{message: 'You should not create a new promise with this syntax. Use the $q(function(resolve, reject){}) syntax.'}]}
0 commit comments