remove unnesscessary values
This commit is contained in:
@@ -18,7 +18,7 @@ export default function runTestScriptWitVariables(script, variables) {
|
|||||||
_report: '',
|
_report: '',
|
||||||
expect: function(value) {
|
expect: function(value) {
|
||||||
try {
|
try {
|
||||||
return expect(value, this._testReports, arguments);
|
return expect(value, this._testReports);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
pw._testReports.push({result: ERROR, message: e});
|
pw._testReports.push({result: ERROR, message: e});
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,6 @@ export default function runTestScriptWitVariables(script, variables) {
|
|||||||
Object.assign(pw, variables);
|
Object.assign(pw, variables);
|
||||||
|
|
||||||
// run pre-request script within this function so that it has access to the pw object.
|
// run pre-request script within this function so that it has access to the pw object.
|
||||||
let errors = null;
|
|
||||||
new Function("pw", script)(pw);
|
new Function("pw", script)(pw);
|
||||||
//
|
//
|
||||||
const testReports = pw._testReports.map(item => {
|
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`));
|
: this._fail(this._fmtNot(`Expected ${this.expectValue} to (not)be 500-level status`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class PostwomanTestFailure {
|
|
||||||
constructor(message) {
|
|
||||||
return {message}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user