aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/angular-mocksSpec.js5
-rw-r--r--test/widgetsSpec.js2
2 files changed, 2 insertions, 5 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();
});
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index c3bc1333..36e94947 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -567,8 +567,6 @@ describe("widget", function() {
$httpBackend.expect('GET', 'viewPartial.html').respond('content');
$httpBackend.flush();
- myApp.$digest();
- $httpBackend.flush();
expect(myApp.$element.text()).toEqual('include: view: content');
expect($route.current.template).toEqual('viewPartial.html');