Skip to content

Commit

Permalink
workaround for karma-runner/karma#1292
Browse files Browse the repository at this point in the history
(cherry picked from commit 8e3cdcf)
  • Loading branch information
segrey committed Jan 30, 2015
1 parent c3a0e2b commit 0b7bdc9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ function IntellijReporter(config, fileList, formatError, globalEmitter, injector
if (specName == null) {
return;
}
if (tree == null) {
// workaround for https://github.com/karma-runner/karma/issues/1292
process.stdout.write('Test "' + suiteNames.concat(specName).join('.') + '" skipped\n');
return;
}
var browserNode = getOrCreateBrowserNode(tree, browser);
if (typeof browserNode.checkedForTotalTestCount === 'undefined') {
browserNode.checkedForTotalTestCount = true;
Expand Down

0 comments on commit 0b7bdc9

Please sign in to comment.