From 0da1f3a406284077be080fd406dd969d14604879 Mon Sep 17 00:00:00 2001 From: Nicholas Palenchar Date: Fri, 24 Jan 2020 13:34:24 -0500 Subject: [PATCH] remove unnesscessary values --- functions/postwomanTesting.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.js index 69804cedc..ae11fd560 100644 --- a/functions/postwomanTesting.js +++ b/functions/postwomanTesting.js @@ -18,7 +18,7 @@ export default function runTestScriptWitVariables(script, variables) { _report: '', expect: function(value) { try { - return expect(value, this._testReports, arguments); + return expect(value, this._testReports); } catch (e) { pw._testReports.push({result: ERROR, message: e}); } @@ -29,7 +29,6 @@ export default function runTestScriptWitVariables(script, variables) { Object.assign(pw, variables); // run pre-request script within this function so that it has access to the pw object. - let errors = null; new Function("pw", script)(pw); // const testReports = pw._testReports.map(item => { @@ -144,9 +143,3 @@ class Expectation { : this._fail(this._fmtNot(`Expected ${this.expectValue} to (not)be 500-level status`)); } } - -class PostwomanTestFailure { - constructor(message) { - return {message} - } -}