aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/xhr.cacheSpec.js
diff options
context:
space:
mode:
authorIgor Minar2011-07-17 00:47:11 -0700
committerIgor Minar2011-07-18 12:12:54 -0700
commit4c6d26a38f977f61d4deaacfd6b6c71f331e8065 (patch)
treefc291897c2e61097f2cabdf1963ed752704fd24a /test/service/xhr.cacheSpec.js
parentc43ce91b2534fe36994fd74cf8d159e54909d8ca (diff)
downloadangular.js-4c6d26a38f977f61d4deaacfd6b6c71f331e8065.tar.bz2
fix(strict mode): fix all issues discovered by strict mode and unit/e2e tests
Diffstat (limited to 'test/service/xhr.cacheSpec.js')
-rw-r--r--test/service/xhr.cacheSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/service/xhr.cacheSpec.js b/test/service/xhr.cacheSpec.js
index ecaebc3f..4d3e3e08 100644
--- a/test/service/xhr.cacheSpec.js
+++ b/test/service/xhr.cacheSpec.js
@@ -124,21 +124,21 @@ describe('$xhr.cache', function() {
it('should call eval after callbacks for both cache hit and cache miss execute', function() {
- var eval = this.spyOn(scope, '$eval').andCallThrough();
+ var evalSpy = this.spyOn(scope, '$eval').andCallThrough();
$browserXhr.expectGET('/url').respond('+');
cache('GET', '/url', null, callback);
- expect(eval).not.toHaveBeenCalled();
+ expect(evalSpy).not.toHaveBeenCalled();
$browserXhr.flush();
- expect(eval).toHaveBeenCalled();
+ expect(evalSpy).toHaveBeenCalled();
- eval.reset(); //reset the spy
+ evalSpy.reset(); //reset the spy
cache('GET', '/url', null, callback);
- expect(eval).not.toHaveBeenCalled();
+ expect(evalSpy).not.toHaveBeenCalled();
$browser.defer.flush();
- expect(eval).toHaveBeenCalled();
+ expect(evalSpy).toHaveBeenCalled();
});
});