Comparing version 4.2.0 to 4.2.1
@@ -45,3 +45,3 @@ "use strict"; | ||
testResult = toTestResult(testDef, webUrl, body); | ||
redactData(testResult, body); | ||
redactData(testResult, body, testingServer); | ||
if (callback) { | ||
@@ -202,4 +202,4 @@ callback(null, testResult); | ||
} | ||
function redactData(testResult, body) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns); | ||
function redactData(testResult, body, testingServer) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns, testingServer); | ||
} | ||
@@ -241,3 +241,3 @@ function isTestInFinalState(body, runType) { | ||
} | ||
function reductTestSuitesRuns(suitesRuns) { | ||
function reductTestSuitesRuns(suitesRuns, testingServer) { | ||
if (suitesRuns) { | ||
@@ -250,3 +250,3 @@ return suitesRuns.map(function (s) { | ||
status: s.status, | ||
url: s.url, | ||
url: getTestWebUrl({ id: s.id, type: Loadmill.TYPES.SUITE }, testingServer), | ||
passed: s.status === "PASSED", | ||
@@ -253,0 +253,0 @@ startTime: s.startTime, |
{ | ||
"name": "loadmill", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A node.js module for running load tests and functional tests on loadmill.com", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -54,3 +54,3 @@ import './polyfills' | ||
redactData(testResult, body); | ||
redactData(testResult, body, testingServer); | ||
@@ -209,4 +209,4 @@ if (callback) { | ||
function redactData(testResult: Loadmill.TestResult, body: any) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns); | ||
function redactData(testResult: Loadmill.TestResult, body: any, testingServer: string) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns, testingServer); | ||
} | ||
@@ -251,3 +251,3 @@ | ||
function reductTestSuitesRuns(suitesRuns) { | ||
function reductTestSuitesRuns(suitesRuns, testingServer) { | ||
if (suitesRuns) { | ||
@@ -261,3 +261,3 @@ return suitesRuns.map(s => { | ||
status: s.status, | ||
url: s.url, | ||
url: getTestWebUrl({ id: s.id, type: Loadmill.TYPES.SUITE }, testingServer), | ||
passed: s.status === "PASSED", | ||
@@ -264,0 +264,0 @@ startTime: s.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
129482