Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Fixed function name typo for runScriptWithVariables

Andrew Bastindc236c6bf1c9
diff --git a/functions/postwomanTesting.js b/functions/postwomanTesting.js
index 8b98b2798..76d44568a 100644
--- a/functions/postwomanTesting.js
+++ b/functions/postwomanTesting.js
@@ -11,7 +11,7 @@ const styles = {
//TODO: probably have to use a more global state for `test`
-export default function runTestScriptWitVariables(script, variables) {
+export default function runTestScriptWithVariables(script, variables) {
let pw = {
_errors: [],
_testReports: [],
diff --git a/pages/index.vue b/pages/index.vue
index c0a12f15d..cb6bc3d95 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1226,7 +1226,7 @@ import querystring from "querystring";
import textareaAutoHeight from "../directives/textareaAutoHeight";
import parseCurlCommand from "../assets/js/curlparser.js";
import getEnvironmentVariablesFromScript from "../functions/preRequest";
-import runTestScriptWitVariables from "../functions/postwomanTesting";
+import runTestScriptWithVariables from "../functions/postwomanTesting";
import parseTemplateString from "../functions/templating";
import AceEditor from "../components/ace-editor";
import { tokenRequest, oauthRedirect } from "../assets/js/oauth";
@@ -2220,7 +2220,7 @@ export default {
body: this.response.body,
headers: this.response.headers
};
- const { testResults } = runTestScriptWitVariables(this.testScript, {
+ const { testResults } = runTestScriptWithVariables(this.testScript, {
response: syntheticResponse
});
this.testReports = testResults;