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
Added extra test for error handling
Karel De Smet15ecb19c6592
diff --git a/helpers/__tests__/postwomanTesting.spec.js b/helpers/__tests__/postwomanTesting.spec.jsindex 1afa61622..83184b39a 100644--- a/helpers/__tests__/postwomanTesting.spec.js+++ b/helpers/__tests__/postwomanTesting.spec.js@@ -19,6 +19,11 @@ describe("Error handling", () => {test("errors array is empty on a successful test", () => {expect(getErrors("pw.expect(1).toBe(1)")).toStrictEqual([])})+ test("throws error at a variable which is not declared", () => {+ expect(() => {+ runTestScriptWithVariables("someVariable")+ }).toThrow()+ })})describe("toBe", () => {