mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
feat(ngMock.$timeout): remove flushNext method
This commit is contained in:
4
test/ngMock/angular-mocksSpec.js
vendored
4
test/ngMock/angular-mocksSpec.js
vendored
@@ -417,9 +417,9 @@ describe('ngMock', function() {
|
||||
|
||||
$timeout(iterate, 100);
|
||||
$timeout(iterate, 123);
|
||||
$timeout.flushNext(100);
|
||||
$timeout.flush(100);
|
||||
expect(count).toBe(1);
|
||||
$timeout.flushNext(123);
|
||||
$timeout.flush(123);
|
||||
expect(count).toBe(2);
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user