protractor-cucumber-framework
Advanced tools
Comparing version 0.3.0 to 0.3.1
18
index.js
@@ -43,8 +43,8 @@ var q = require('q'), | ||
if (cliArgumentValues.length) { | ||
if (cliArgumentValues === true) { | ||
cliArguments.push('--' + option); | ||
} else if (cliArgumentValues.length) { | ||
cliArgumentValues.forEach(function (value) { | ||
cliArguments.push('--' + option, value); | ||
}); | ||
} else { | ||
cliArguments.push('--' + option); | ||
} | ||
@@ -75,9 +75,7 @@ } | ||
function convertGenericOptionValuesToCliValues(values) { | ||
return values.reduce(function (opts, value) { | ||
if (value !== true) { | ||
opts.push(value); | ||
} | ||
return opts; | ||
}, []); | ||
if (values[0] === true) { | ||
return values[0] | ||
} else { | ||
return values; | ||
} | ||
} | ||
@@ -84,0 +82,0 @@ |
{ | ||
"name": "protractor-cucumber-framework", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Protractor framework for Cucumber.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
9110
154