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

Commit 7b5a9da

Browse files
erwinmombaySomeKittens
authored andcommitted
fix(scopes.spec): make sure to uninstall the clock after each run.
1 parent 3827a76 commit 7b5a9da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/scopes.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ describe('ngHintScopes', function() {
9696
jasmine.clock().install();
9797
});
9898

99+
afterEach(function() {
100+
jasmine.clock().uninstall();
101+
});
102+
99103
it('should emit when registering a watch', function() {
100104
hint.watch(scope.$id, 'a.b.c');
101105
jasmine.clock().tick(10);
@@ -139,7 +143,7 @@ describe('ngHintScopes', function() {
139143
jasmine.clock().tick(10);
140144

141145
expect(hint.emit).toHaveBeenCalled();
142-
var args = getArgsOfNthCall(5);
146+
var args = getArgsOfNthCall(4);
143147
expect(args[0]).toBe('model:change');
144148

145149
expect(args[1]).toEqual({
@@ -149,7 +153,7 @@ describe('ngHintScopes', function() {
149153
value : '{"c":2}'
150154
});
151155

152-
args = getArgsOfNthCall(6);
156+
args = getArgsOfNthCall(5);
153157
expect(args[0]).toBe('model:change');
154158

155159
expect(args[1]).toEqual({

0 commit comments

Comments
 (0)