mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
fixed isNumber to angular.isNumber for mocks outside of angular
This commit is contained in:
2
test/angular-mocks.js
vendored
2
test/angular-mocks.js
vendored
@@ -54,7 +54,7 @@ function MockBrowser() {
|
||||
var expect = expectations[method] || (expectations[method] = {});
|
||||
return {
|
||||
respond: function(code, response) {
|
||||
if (!isNumber(code)) {
|
||||
if (!angular.isNumber(code)) {
|
||||
response = code;
|
||||
code = 200;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user