From 88cabc4dcebbe1afe0a80fbfe0f734e73f53f7e0 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; } }