From f7ae98c21eb675a4276a676117444b466192e964 Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Tue, 22 Jan 2019 23:33:09 +0000 Subject: [PATCH] Do not run pester tests when user cancels questions using the x button (#1714) --- src/features/PesterTests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/PesterTests.ts b/src/features/PesterTests.ts index 75bb17698b..832e673a1d 100644 --- a/src/features/PesterTests.ts +++ b/src/features/PesterTests.ts @@ -62,7 +62,7 @@ export class PesterTestsFeature implements IFeature { `Would you like to ${runInDebugger ? "debug" : "run"} all the tests in this file?`, "Yes", "No"); - if (answer === "No") { + if (answer !== "Yes") { return; } }