cucumber-html-reporter
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -0,1 +1,7 @@ | ||
### 4.0.3 (Aug-23-2018) | ||
* Cannot generate report due an error with Trim() - [PR#125](https://github.com/gkushang/cucumber-html-reporter/pull/125) | ||
* if to switch statement change #155 - [PR#155](https://github.com/gkushang/cucumber-html-reporter/pull/155) | ||
### 4.0.2 (Feb-26-2018) | ||
@@ -16,3 +22,3 @@ | ||
* Fix for Cucumber V2, mime_type | ||
* Fix for Cucumber V2, mime_type | ||
@@ -31,3 +37,3 @@ ### 3.0.3 (Sep-20-2017) | ||
* Feature: update to simple theme report [PR#106](https://github.com/gkushang/cucumber-html-reporter/pull/106) | ||
* Fix issues: [#101](https://github.com/gkushang/cucumber-html-reporter/issues/101), [#98](https://github.com/gkushang/cucumber-html-reporter/issues/98) | ||
* Fix issues: [#101](https://github.com/gkushang/cucumber-html-reporter/issues/101), [#98](https://github.com/gkushang/cucumber-html-reporter/issues/98) | ||
@@ -34,0 +40,0 @@ |
@@ -26,6 +26,8 @@ 'use strict'; | ||
var sanitize = function (name, find) { | ||
var unsafeCharacters = find || /[\/\\\|:"\*\?<>]/g; | ||
name = name.trim().replace(unsafeCharacters, '_'); | ||
return name; | ||
}; | ||
var unsafeCharacters = find || /[/\|:"*?<>]/g; | ||
if (name !== undefined) { | ||
name = name.trim().replace(unsafeCharacters, '_'); | ||
} | ||
return name; | ||
}; | ||
@@ -293,17 +295,16 @@ featureOutput.summary = { | ||
if (step.result.duration) element.time += step.result.duration; | ||
if (step.result.status === result.status.passed) { | ||
switch (step.result.status) { | ||
case result.status.passed: | ||
return element.passed++; | ||
} | ||
if (step.result.status === result.status.failed) { | ||
case result.status.failed: | ||
return element.failed++; | ||
} | ||
if (step.result.status === result.status.undefined) { | ||
return element.notdefined++; | ||
} | ||
if (step.result.status === result.status.pending) { | ||
case result.status.undefined: | ||
return element.undefined++; | ||
case result.status.pending: | ||
return element.pending++; | ||
} | ||
if (step.result.status === result.status.ambiguous) { | ||
case result.status.ambiguous: | ||
return element.ambiguous++; | ||
default: | ||
break; | ||
} | ||
@@ -310,0 +311,0 @@ |
{ | ||
"name": "cucumber-html-reporter", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Generates Cucumber HTML reports in three different themes", | ||
@@ -78,2 +78,10 @@ "main": "index.js", | ||
"url": "https://github.com/xywang68" | ||
}, | ||
{ | ||
"name": "aurell14", | ||
"url": "https://github.com/aurell14" | ||
}, | ||
{ | ||
"name": "mkginfo", | ||
"url": "https://github.com/mkginfo" | ||
} | ||
@@ -108,3 +116,3 @@ ], | ||
"jsonfile": "^3.0.0", | ||
"lodash": "^4.17.2", | ||
"lodash": "^4.17.5", | ||
"opn": "5.3.0" | ||
@@ -111,0 +119,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1979235
2479
Updatedlodash@^4.17.5