vendor/assets/javascripts/angular-mocks.js in angular-gem-1.3.4 vs vendor/assets/javascripts/angular-mocks.js in angular-gem-1.3.5
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license AngularJS v1.3.4
+ * @license AngularJS v1.3.5
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
@@ -1147,11 +1147,11 @@
if (angular.isFunction(status)) return status;
return function() {
return angular.isNumber(status)
? [status, data, headers, statusText]
- : [200, status, data];
+ : [200, status, data, headers];
};
}
// TODO(vojta): change params to: method, url, data, headers, callback
function $httpBackend(method, url, data, callback, headers, timeout, withCredentials) {
@@ -2052,11 +2052,11 @@
* methods are automatically available on any {@link ng.$rootScope.Scope Scope} instance when
* `ngMock` module is loaded.
*
* In addition to all the regular `Scope` methods, the following helper methods are available:
*/
-angular.mock.$RootScopeDecorator = function($delegate) {
+angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
var $rootScopePrototype = Object.getPrototypeOf($delegate);
$rootScopePrototype.$countChildScopes = countChildScopes;
$rootScopePrototype.$countWatchers = countWatchers;
@@ -2124,10 +2124,10 @@
}
}
return count;
}
-};
+}];
if (window.jasmine || window.mocha) {
var currentSpec = null,