From 123edced90a9b4dbe0019ed4b1f2a636f0a5df86 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Mon, 14 May 2018 16:15:01 -0700 Subject: [PATCH] Updated test to test file contents. --- .../cases/fourslash/codeFixDisableJsDiagnosticsInFile.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile.ts b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile.ts index 070712c2523..b862b69d8b6 100644 --- a/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile.ts +++ b/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile.ts @@ -4,8 +4,10 @@ // @noEmit: true // @Filename: a.js -////[|// @ts-check|] +////[|// @ts-check ////var x = ""; -////x = 1; +////x = 1;|] -verify.rangeAfterCodeFix("// @ts-nocheck", /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 1); \ No newline at end of file +verify.rangeAfterCodeFix(`// @ts-nocheck +var x = ""; +x = 1;`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 1); \ No newline at end of file