cucumber-html-reporter
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,1 +1,6 @@ | ||
### 3.0.2 (Sep-20-2017) | ||
* Add Backward compatibility for Cucumber V2 and V3. Add styling to Keywords GWT on HTML Report [PR#114](https://github.com/gkushang/cucumber-html-reporter/pull/114) | ||
### 3.0.1 (Aug-23-2017) | ||
@@ -2,0 +7,0 @@ |
@@ -215,3 +215,11 @@ 'use strict'; | ||
if (embedding.media.type === 'text/plain') { | ||
var embeddingType = {}; | ||
if (embedding.mime_type) { | ||
embeddingType = embedding.mime_type.type; | ||
} else if (embedding.media) { | ||
embeddingType = embedding.media.type; | ||
} | ||
if (embeddingType === 'text/plain') { | ||
if (!step.text) { | ||
@@ -222,3 +230,3 @@ step.text = embedding.data; | ||
} | ||
} else if (embedding.media.type === 'application/json') { | ||
} else if (embeddingType === 'application/json') { | ||
var decoded = new Buffer(embedding.data, 'base64').toString('ascii'); | ||
@@ -231,3 +239,3 @@ | ||
} | ||
} else if (embedding.media.type === 'image/png') { | ||
} else if (embeddingType === 'image/png') { | ||
step.image = 'data:image/png;base64,' + embedding.data; | ||
@@ -234,0 +242,0 @@ |
{ | ||
"name": "cucumber-html-reporter", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Generates Cucumber HTML reports in three different themes", | ||
@@ -50,2 +50,6 @@ "main": "index.js", | ||
"url": "https://github.com/spukst3r" | ||
}, | ||
{ | ||
"name": "klimenko4", | ||
"url": "https://github.com/klimenko4" | ||
} | ||
@@ -52,0 +56,0 @@ ], |
@@ -17,3 +17,2 @@ # cucumber-html-reporter | ||
> _For future updates, follow the [twitter][twitter] handle_ | ||
@@ -265,7 +264,3 @@ ## Snapshot of Bootstrap Report | ||
## For updates on the module | ||
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/g_kushang) | ||
## Credits | ||
@@ -272,0 +267,0 @@ |
Sorry, the diff of this file is not supported yet
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
1950619
2431
283