Comparing version 3.0.6 to 3.0.7
@@ -357,3 +357,3 @@ "use strict"; | ||
"failures": failedSuites, | ||
"start": (suites[0] ? new Date(suites[0].startTime) : new Date()).toISOString(), | ||
"start": (suites[0] ? getFirstExecutedSuiteTime(suites) : new Date()).toISOString(), | ||
"end": new Date().toISOString(), | ||
@@ -440,1 +440,7 @@ "pending": 0, | ||
exports.mochawesomeReport = mochawesomeReport; | ||
function getFirstExecutedSuiteTime(suites) { | ||
var firstSuite = suites.reduce(function (prev, curr) { | ||
return prev.startTime < curr.startTime ? prev : curr; | ||
}); | ||
return new Date(firstSuite.startTime); | ||
} |
{ | ||
"name": "loadmill", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "A node.js module for running load tests and functional tests on loadmill.com", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -368,3 +368,3 @@ import * as fs from "fs"; | ||
"failures": failedSuites, | ||
"start": (suites[0]? new Date(suites[0].startTime) : new Date()).toISOString(), | ||
"start": (suites[0]? getFirstExecutedSuiteTime(suites) : new Date()).toISOString(), | ||
"end": new Date().toISOString(), | ||
@@ -425,1 +425,9 @@ "pending": 0, | ||
} | ||
function getFirstExecutedSuiteTime(suites: Loadmill.TestResult[]) { | ||
const firstSuite = suites.reduce(function(prev, curr) { | ||
return prev.startTime < curr.startTime ? prev : curr; | ||
}); | ||
return new Date(firstSuite.startTime); | ||
} | ||
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
138271
2714