diff options
| author | Vojta Jina | 2011-11-01 13:21:00 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-11-30 11:17:23 -0500 |
| commit | e9f81b66316854bdd3a8548f028a64e86fc3e73c (patch) | |
| tree | efbcd07af8a8061bd850570818957a5ee78b59ca /test/angular-mocksSpec.js | |
| parent | afbe073121f13a23dc33a1d958c0a964029dc6ee (diff) | |
| download | angular.js-e9f81b66316854bdd3a8548f028a64e86fc3e73c.tar.bz2 | |
fix(mock.$httpBackend): flush() even requests sent during callbacks
Diffstat (limited to 'test/angular-mocksSpec.js')
| -rw-r--r-- | test/angular-mocksSpec.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js index cb11d355..5b24c440 100644 --- a/test/angular-mocksSpec.js +++ b/test/angular-mocksSpec.js @@ -563,15 +563,14 @@ describe('mocks', function() { }); - it('flush() should not flush requests fired during callbacks', function() { - // regression + it('flush() should flush requests fired during callbacks', function() { hb.when('GET').then(200, ''); hb('GET', '/some', null, function() { hb('GET', '/other', null, callback); }); hb.flush(); - expect(callback).not.toHaveBeenCalled(); + expect(callback).toHaveBeenCalled(); }); |
