diff options
| author | Vojta Jina | 2011-11-03 15:17:32 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-11-30 11:17:24 -0500 |
| commit | 9b4efa73f9eef7c22895ca269760eb11ecb54b30 (patch) | |
| tree | 12886a39600b178d8d58b246168766354fd7d9b4 /test/angular-mocksSpec.js | |
| parent | 4aaa2f7f6b37f0ad8255e6a320e9136a89e329de (diff) | |
| download | angular.js-9b4efa73f9eef7c22895ca269760eb11ecb54b30.tar.bz2 | |
feat(mock.$httpBackend): say which request was expected when unexpected request error
Diffstat (limited to 'test/angular-mocksSpec.js')
| -rw-r--r-- | test/angular-mocksSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js index 6b6f0052..e117c26d 100644 --- a/test/angular-mocksSpec.js +++ b/test/angular-mocksSpec.js @@ -399,7 +399,7 @@ describe('mocks', function() { hb.when('GET', '/url1').respond(200, 'content'); expect(function() { hb('GET', '/xxx'); - }).toThrow('Unexpected request: GET /xxx'); + }).toThrow('Unexpected request: GET /xxx\nNo more request expected'); }); @@ -506,7 +506,7 @@ describe('mocks', function() { expect(function() { hb('GET', '/url2', null, noop, {}); - }).toThrow('Unexpected request: GET /url2'); + }).toThrow('Unexpected request: GET /url2\nExpected GET /url1'); }); |
