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

Commit 26e0a47

Browse files
committed
Debug test
1 parent 55bae54 commit 26e0a47

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/ngMock/angular-mocksSpec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -339,19 +339,19 @@ describe('ngMock', function() {
339339

340340
it('should allow you to specify the delay time', inject(function($interval) {
341341
var counter = 0;
342-
$interval(function() { counter++; }, 123);
342+
$interval(function() { counter++; }, 1);
343343

344344
expect(counter).toBe(0);
345345

346-
$interval.flush(122);
347-
expect(counter).toBe(0);
346+
$interval.flush(1000);
347+
expect(counter).toBe(1000);
348348

349-
$interval.flush(1);
350-
expect(counter).toBe(1);
349+
$interval.flush(1000);
350+
expect(counter).toBe(2000);
351351
}));
352352

353353

354-
it('should allow you to NOT specify the delay time', inject(function($interval) {
354+
xit('should allow you to NOT specify the delay time', inject(function($interval) {
355355
var counterA = 0;
356356
var counterB = 0;
357357

0 commit comments

Comments
 (0)