karma-mocha-reporter
Advanced tools
11
index.js
@@ -231,3 +231,3 @@ 'use strict'; | ||
}); | ||
return isCompleted; | ||
@@ -365,2 +365,9 @@ } | ||
if (String(err.actual).match(/^".*"$/) && String(err.expected).match(/^".*"$/)) { | ||
try { | ||
err.actual = JSON.parse(err.actual); | ||
err.expected = JSON.parse(err.expected); | ||
} catch(e) {} | ||
} | ||
// ensure that actual and expected are strings | ||
@@ -516,3 +523,3 @@ if (!(utils.isString(actual) && utils.isString(expected))) { | ||
item.isCompleted = true; | ||
// print results to output when test was ran through all browsers | ||
@@ -519,0 +526,0 @@ if (outputMode !== 'minimal') { |
{ | ||
"name": "karma-mocha-reporter", | ||
"description": "Karma reporter with mocha style logging.", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"homepage": "http://www.litixsoft.de/modules-karmamochareporter", | ||
@@ -54,6 +54,6 @@ "author": "Litixsoft GmbH <info@litixsoft.de> (http://www.litixsoft.de)", | ||
"chai": "^3.5.0", | ||
"grunt": "^1.0.0", | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-karma": "^0.12.1", | ||
"grunt-karma": "^1.0.0", | ||
"grunt-shell": "^1.2.1", | ||
@@ -67,4 +67,4 @@ "jasmine-core": "^2.4.1", | ||
"karma-ie-launcher": "*", | ||
"karma-jasmine": "^0.3.7", | ||
"karma-mocha": "^0.2.2", | ||
"karma-jasmine": "^1.0.2", | ||
"karma-mocha": "^1.0.1", | ||
"karma-opera-launcher": "*", | ||
@@ -71,0 +71,0 @@ "karma-phantomjs-launcher": "1.0.0", |
@@ -48,3 +48,3 @@ # karma-mocha-reporter | ||
### colors | ||
**Type:** Object | ||
**Type:** Object | Boolean | ||
@@ -61,2 +61,3 @@ Let's you overwrite the default colors. Possible values are all colors and background colors from [chalk](https://github.com/chalk/chalk#colors). | ||
`error` | error messages | red | ||
`false` | disable colors | | ||
@@ -212,2 +213,5 @@ ```js | ||
## Release History | ||
### v2.0.3 | ||
* Fix multiline string diffs | ||
### v2.0.2 | ||
@@ -214,0 +218,0 @@ * Print a test suite with it's child items only after all child items are completed |
33323
1.21%537
1.13%340
1.19%