diff options
| author | Misko Hevery | 2010-05-19 16:00:20 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-05-19 16:00:20 -0700 | 
| commit | 80bd0c273b20b6fde25bb38c7639821cd205f69b (patch) | |
| tree | ec94c384f1b5b4d9818613d3142ef012448d4096 /test | |
| parent | 80e12276f423a0dcb486b1191857db96a0ba0a93 (diff) | |
| download | angular.js-80bd0c273b20b6fde25bb38c7639821cd205f69b.tar.bz2 | |
fixed isNumber to angular.isNumber for mocks outside of angular
Diffstat (limited to 'test')
| -rw-r--r-- | test/angular-mocks.js | 2 | ||||
| -rw-r--r-- | test/servicesSpec.js | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/test/angular-mocks.js b/test/angular-mocks.js index c5784ac9..8838b2cd 100644 --- a/test/angular-mocks.js +++ b/test/angular-mocks.js @@ -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;          } diff --git a/test/servicesSpec.js b/test/servicesSpec.js index 45993490..c2c13461 100644 --- a/test/servicesSpec.js +++ b/test/servicesSpec.js @@ -288,7 +288,7 @@ describe("service", function(){          expect(typeof cb).toEqual('function');          expect($xhrError).wasCalledWith(              {url:'/req1', method:'GET', data:null, callback:cb}, -            {status:404, body:'NotFound'}); +            {status:404, response:'NotFound'});          expect(log).toEqual('"second";DONE');        }); | 
