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

Commit

Permalink
fix(jasmine): fix errors when iit was used
Browse files Browse the repository at this point in the history
Errors were due to Jasmine not calling reportSpecStarting when iit
was used, but calling reportSpecResults.

Closes #1602
  • Loading branch information
juliemr committed Dec 5, 2014
1 parent 862a096 commit a132fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/frameworks/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ exports.run = function(runner, specs) {

var RunnerReporter = function(emitter) {
this.emitter = emitter;

// Need to initiate startTime here, in case reportSpecStarting is not
// called (e.g. when iit is used)
this.startTime = new Date();
};

RunnerReporter.prototype.reportRunnerStarting = function() {};
Expand Down

0 comments on commit a132fac

Please sign in to comment.