Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
remove unnesscessary values
Nicholas Palenchar0da1f3a40628
diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.jsindex 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}- }-}