cucumber-html-reporter
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,5 @@ | ||
### 4.0.1 (Feb-06-2018) | ||
* Support to attach Video files as `text/html` to the report - [PR#132](https://github.com/gkushang/cucumber-html-reporter/pull/132) | ||
### 4.0.0 (Feb-02-2018) | ||
@@ -2,0 +6,0 @@ |
@@ -226,5 +226,14 @@ 'use strict'; | ||
if (embeddingType === 'text/plain') { | ||
if (embeddingType === 'text/plain' || embeddingType === 'text/html') { | ||
var decoded; | ||
if (embeddingType === 'text/html') { | ||
decoded = new Buffer(embedding.data, 'base64').toString('ascii'); | ||
} else { | ||
decoded = embedding.data; | ||
} | ||
if (!step.text) { | ||
step.text = embedding.data; | ||
step.text = decoded; | ||
} else { | ||
@@ -231,0 +240,0 @@ step.text = step.text.concat('<br>' + embedding.data); |
{ | ||
"name": "cucumber-html-reporter", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Generates Cucumber HTML reports in three different themes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1966856
2439