aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/xhr.cacheSpec.js
diff options
context:
space:
mode:
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();
});
});