aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocks.js
diff options
context:
space:
mode:
authorMisko Hevery2010-07-22 11:18:32 -0700
committerMisko Hevery2010-07-22 11:18:32 -0700
commit849a05b5a578f19ddc3d24dc9fbd304e0e07612a (patch)
tree3e32e2ab7b8c1ed3f53e5b568990070b5edab4fa /test/angular-mocks.js
parentb5bbfaeb80c3f89c65d14c72cff6f0e1c8aa497a (diff)
downloadangular.js-849a05b5a578f19ddc3d24dc9fbd304e0e07612a.tar.bz2
added jsonp to resources
Diffstat (limited to 'test/angular-mocks.js')
-rw-r--r--test/angular-mocks.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/angular-mocks.js b/test/angular-mocks.js
index 8838b2cd..bac2e800 100644
--- a/test/angular-mocks.js
+++ b/test/angular-mocks.js
@@ -66,6 +66,7 @@ function MockBrowser() {
self.xhr.expectPOST = angular.bind(self, self.xhr.expect, 'POST');
self.xhr.expectDELETE = angular.bind(self, self.xhr.expect, 'DELETE');
self.xhr.expectPUT = angular.bind(self, self.xhr.expect, 'PUT');
+ self.xhr.expectJSON = angular.bind(self, self.xhr.expect, 'JSON');
self.xhr.flush = function() {
while(requests.length) {
requests.pop()();