Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e86de0d

Browse files
committed
test(Scope): fix tests after reverting commits
Making assertions on state (rather than interactions) is better anyway.
1 parent 4114f9c commit e86de0d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/ng/rootScopeSpec.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,8 @@ describe('Scope', function() {
751751
$browser.defer.flush(0);
752752
expect(log).toEqual(['eval-ed 1!', 'eval-ed 2!']);
753753

754-
expect(function() {
755-
$browser.defer.flush(0);
756-
}).toThrow('No deferred tasks with delay up to 0ms to be flushed!');
754+
$browser.defer.flush(100000);
755+
expect(log).toEqual(['eval-ed 1!', 'eval-ed 2!']);
757756
});
758757
});
759758
});

0 commit comments

Comments
 (0)