From d7dfeab915f2a10befc3ae36a7e65c2169944cab Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sat, 18 Jun 2016 17:01:29 +0100 Subject: [PATCH] refact($http): use the $jsonpCallbacks service Use the built-in service to handling callbacks to `$http.jsonp` requests. Closes #3073 --- test/ng/httpBackendSpec.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/ng/httpBackendSpec.js b/test/ng/httpBackendSpec.js index 936b616a97bc..bf27cf290a02 100644 --- a/test/ng/httpBackendSpec.js +++ b/test/ng/httpBackendSpec.js @@ -338,7 +338,6 @@ describe('$httpBackend', function() { it('should clean up the callback and remove the script', function() { - spyOn($jsonpCallbacks, 'wasCalled').and.callThrough(); spyOn($jsonpCallbacks, 'removeCallback').and.callThrough(); $backend('JSONP', 'http://example.org/path?cb=JSON_CALLBACK', null, callback);