🐛 Fixed #644
This commit is contained in:
parent
1a93ce1d43
commit
0533f3a070
1 changed files with 10 additions and 10 deletions
|
|
@ -2132,16 +2132,6 @@ export default {
|
|||
}
|
||||
}
|
||||
})()
|
||||
// tests
|
||||
const syntheticResponse = {
|
||||
status: this.response.status,
|
||||
body: this.response.body,
|
||||
headers: this.response.headers,
|
||||
}
|
||||
const { testResults } = runTestScriptWithVariables(this.testScript, {
|
||||
response: syntheticResponse,
|
||||
})
|
||||
this.testReports = testResults
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
if (error.response) {
|
||||
|
|
@ -2187,6 +2177,16 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
// tests
|
||||
const syntheticResponse = {
|
||||
status: this.response.status,
|
||||
body: this.response.body,
|
||||
headers: this.response.headers,
|
||||
}
|
||||
const { testResults } = runTestScriptWithVariables(this.testScript, {
|
||||
response: syntheticResponse,
|
||||
})
|
||||
this.testReports = testResults
|
||||
},
|
||||
getQueryStringFromPath() {
|
||||
let queryString
|
||||
|
|
|
|||
Loading…
Reference in a new issue