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

Commit a132fac

Browse files
committed
fix(jasmine): fix errors when iit was used
Errors were due to Jasmine not calling reportSpecStarting when iit was used, but calling reportSpecResults. Closes #1602
1 parent 862a096 commit a132fac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/frameworks/jasmine.js

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ exports.run = function(runner, specs) {
1717

1818
var RunnerReporter = function(emitter) {
1919
this.emitter = emitter;
20+
21+
// Need to initiate startTime here, in case reportSpecStarting is not
22+
// called (e.g. when iit is used)
23+
this.startTime = new Date();
2024
};
2125

2226
RunnerReporter.prototype.reportRunnerStarting = function() {};

0 commit comments

Comments
 (0)