karma-jasmine-diff-reporter
Advanced tools
Comparing version 0.2.0 to 0.2.1
13
index.js
@@ -30,3 +30,3 @@ 'use strict'; | ||
this.specFailure = function (browser, result) { | ||
self.specFailure = function (browser, result) { | ||
@@ -46,2 +46,13 @@ result.log = result.log.map(function (message) { | ||
// When using console.log from specs, Karma displays them through a method | ||
// "onBrowserLog". In case, when multiple reporters are used in conjunction | ||
// with karma-jasmine-diff-reporter, they both will show a console.log, | ||
// because they both have implementation of this method if inheriting. | ||
// So just suppress any logs from karma-jasmine-diff-reporter, because | ||
// it is an utility reporter by doing nothing on browser log, | ||
// unless it's alone in the "reporters" option and base reporter is used. | ||
if (hasTrailingReporters) { | ||
self.onBrowserLog = function () {}; | ||
} | ||
} | ||
@@ -48,0 +59,0 @@ |
{ | ||
"name": "karma-jasmine-diff-reporter", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Karma reporter to highlight diffs of failed equality expectations for Jasmine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14131
159