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
fix: fix test script lint errors
Andrew Bastindd004c921e6e
diff --git a/components/smart/JsEditor.vue b/components/smart/JsEditor.vueindex 7009043ca..aa7c1a891 100644--- a/components/smart/JsEditor.vue+++ b/components/smart/JsEditor.vue@@ -15,6 +15,7 @@ import {getPreRequestScriptCompletions,getTestScriptCompletions,performPreRequestLinting,+ performTestLinting,} from "~/helpers/tern"export default {@@ -177,7 +178,12 @@ export default {provideLinting: debounce(function (code) {let results = []- performPreRequestLinting(code)+ const lintFunc =+ this.completeMode === "pre"+ ? performPreRequestLinting+ : performTestLinting++ lintFunc(code).then((semanticLints) => {results = results.concat(semanticLints.map((lint) => ({