mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
test(Scope): fix tests after reverting commits
Making assertions on state (rather than interactions) is better anyway.
This commit is contained in:
parent
4114f9c21b
commit
e86de0db56
1 changed files with 2 additions and 3 deletions
|
|
@ -751,9 +751,8 @@ describe('Scope', function() {
|
|||
$browser.defer.flush(0);
|
||||
expect(log).toEqual(['eval-ed 1!', 'eval-ed 2!']);
|
||||
|
||||
expect(function() {
|
||||
$browser.defer.flush(0);
|
||||
}).toThrow('No deferred tasks with delay up to 0ms to be flushed!');
|
||||
$browser.defer.flush(100000);
|
||||
expect(log).toEqual(['eval-ed 1!', 'eval-ed 2!']);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue