allure-js-commons
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,2 @@ | ||
var STATUSES = ['passed', 'pending', 'skipped', 'failed', 'broken']; | ||
function Test(name, timestamp) { | ||
@@ -27,3 +28,5 @@ this.name = name; | ||
this.stop = timestamp || Date.now(); | ||
this.status = status; | ||
if(STATUSES.indexOf(status) > STATUSES.indexOf(this.status)) { | ||
this.status = status; | ||
} | ||
if (error) { | ||
@@ -30,0 +33,0 @@ this.failure = { |
@@ -46,3 +46,2 @@ var _ = require('lodash'), | ||
suite.currentTest.end(status, err, timestamp); | ||
suite.currentTest = null; | ||
}; | ||
@@ -49,0 +48,0 @@ |
{ | ||
"name": "allure-js-commons", | ||
"version": "1.0.2", | ||
"description": "", | ||
"version": "1.0.3", | ||
"description": "Common helper for writing plugins to allure-framework", | ||
"main": "index.js", | ||
"repository": "git@github.com:allure-framework/allure-js-commons.git", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"license": "Apache-2.0", | ||
"devDependencies": {}, | ||
@@ -12,0 +12,0 @@ "dependencies": { |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
26683
0
285