Comparing version 4.2.1 to 4.2.2
@@ -45,3 +45,3 @@ "use strict"; | ||
testResult = toTestResult(testDef, webUrl, body); | ||
redactData(testResult, body, testingServer); | ||
redactData(testResult, body); | ||
if (callback) { | ||
@@ -202,4 +202,4 @@ callback(null, testResult); | ||
} | ||
function redactData(testResult, body, testingServer) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns, testingServer); | ||
function redactData(testResult, body) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns); | ||
} | ||
@@ -241,3 +241,3 @@ function isTestInFinalState(body, runType) { | ||
} | ||
function reductTestSuitesRuns(suitesRuns, testingServer) { | ||
function reductTestSuitesRuns(suitesRuns) { | ||
if (suitesRuns) { | ||
@@ -250,3 +250,3 @@ return suitesRuns.map(function (s) { | ||
status: s.status, | ||
url: getTestWebUrl({ id: s.id, type: Loadmill.TYPES.SUITE }, testingServer), | ||
url: s.url, | ||
passed: s.status === "PASSED", | ||
@@ -253,0 +253,0 @@ startTime: s.startTime, |
{ | ||
"name": "loadmill", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"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, testingServer); | ||
redactData(testResult, body); | ||
@@ -209,4 +209,4 @@ if (callback) { | ||
function redactData(testResult: Loadmill.TestResult, body: any, testingServer: string) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns, testingServer); | ||
function redactData(testResult: Loadmill.TestResult, body: any) { | ||
testResult.testSuitesRuns = reductTestSuitesRuns(body.testSuitesRuns); | ||
} | ||
@@ -251,3 +251,3 @@ | ||
function reductTestSuitesRuns(suitesRuns, testingServer) { | ||
function reductTestSuitesRuns(suitesRuns) { | ||
if (suitesRuns) { | ||
@@ -261,3 +261,3 @@ return suitesRuns.map(s => { | ||
status: s.status, | ||
url: getTestWebUrl({ id: s.id, type: Loadmill.TYPES.SUITE }, testingServer), | ||
url: s.url, | ||
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
129224