From c7f4893b3f9ece45c9f818cb6b632f937f413f3d Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Tue, 22 Jan 2019 22:52:48 +0000 Subject: [PATCH] Do not run pester tests when user cancels questions using the x button --- 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; } }