Socket
Socket
Sign inDemoInstall

cucumber-html

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cucumber-html - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

LICENSE

3

package.json
{
"author": "Aslak Hellesøy <aslak.hellesoy@gmail.com>",
"license": "MIT",
"contributors": ["Cédric Lamalle <cedric.lamalle@gmail.com>", "Julien Biezemans <jb@jbpros.com>"],
"name": "cucumber-html",
"description": "Cross platform HTML formatter for all implementations of Cucumber",
"version": "0.2.3",
"version": "0.2.4",
"homepage": "https://github.com/cucumber/cucumber-html",

@@ -8,0 +9,0 @@ "repository": {

@@ -97,11 +97,11 @@ var CucumberHTML = {};

this.embedding = function(mimeType, data) {
if (mimeType.match(/^image\//))
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
else if (mimeType.match(/^text\//))
{

@@ -199,3 +199,3 @@ this.write(data);

<ol>\
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
</ol>\

@@ -202,0 +202,0 @@ \

{
"author": "Aslak Hellesøy <aslak.hellesoy@gmail.com>",
"license": "MIT",
"contributors": ["Cédric Lamalle <cedric.lamalle@gmail.com>", "Julien Biezemans <jb@jbpros.com>"],
"name": "cucumber-html",
"description": "Cross platform HTML formatter for all implementations of Cucumber",
"version": "0.2.3",
"version": "0.2.4",
"homepage": "https://github.com/cucumber/cucumber-html",

@@ -8,0 +9,0 @@ "repository": {

@@ -97,11 +97,11 @@ var CucumberHTML = {};

this.embedding = function(mimeType, data) {
if (mimeType.match(/^image\//))
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
else if (mimeType.match(/^text\//))
{

@@ -199,3 +199,3 @@ this.write(data);

<ol>\
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
</ol>\

@@ -202,0 +202,0 @@ \

@@ -97,11 +97,11 @@ var CucumberHTML = {};

this.embedding = function(mimeType, data) {
if (mimeType.match(/^image\//))
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
else if (mimeType.match(/^text\//))
{

@@ -199,3 +199,3 @@ this.write(data);

<ol>\
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
</ol>\

@@ -202,0 +202,0 @@ \

@@ -36,3 +36,6 @@ $(document).ready(function() {

formatter.scenario({"tags":[{"name":"@foo","line":3},{"name":"@bar","line":4},{"name":"@doh","line":5}], keyword:'Scenario', name: 'Creating a simple report', line: 6});
formatter.step({keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}});
formatter.step({comments: [
{value: "# Step comment 1"},
{value: "# Step comment 2"}
],keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}});
formatter.step({keyword:'When ', name:'I format it', line: 11});

@@ -69,2 +72,2 @@ formatter.step({keyword:'Then ', name:'It should look pretty', line: 12});

});
});

@@ -97,11 +97,11 @@ var CucumberHTML = {};

this.embedding = function(mimeType, data) {
if (mimeType.match(/^image\//))
if (mimeType.match(/^image\//))
{
currentStep.append('<img src="' + data + '">');
}
else if (mimeType.match(/^video\//))
else if (mimeType.match(/^video\//))
{
currentStep.append('<video src="' + data + '" type="' + mimeType + '" autobuffer controls>Your browser doesn\'t support video.</video>');
}
else if (mimeType.match(/^text\//))
else if (mimeType.match(/^text\//))
{

@@ -199,3 +199,3 @@ this.write(data);

<ol>\
<li class="step"><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
<li class="step"><div class="header"></div><span class="keyword" itemprop="keyword">Keyword</span><span class="name" itemprop="name">Name</span></li>\
</ol>\

@@ -202,0 +202,0 @@ \

@@ -36,3 +36,6 @@ $(document).ready(function() {

formatter.scenario({"tags":[{"name":"@foo","line":3},{"name":"@bar","line":4},{"name":"@doh","line":5}], keyword:'Scenario', name: 'Creating a simple report', line: 6});
formatter.step({keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}});
formatter.step({comments: [
{value: "# Step comment 1"},
{value: "# Step comment 2"}
],keyword:'Given ', name:'I have a feature', line: 7, doc_string:{value: "A\ndoc string\non several lines", content_type:"text/plain", line:8}});
formatter.step({keyword:'When ', name:'I format it', line: 11});

@@ -69,2 +72,2 @@ formatter.step({keyword:'Then ', name:'It should look pretty', line: 12});

});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc