From ed1eb2b274369749b16a6d4bbdd7257e5c8a4d2c Mon Sep 17 00:00:00 2001 From: Bill Ticehurst Date: Wed, 10 Feb 2016 22:28:52 -0800 Subject: [PATCH] Fixed up paths in fourslash tests --- tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts | 7 ------- tests/cases/fourslash/server/definition01.ts | 2 +- tests/cases/fourslash/server/projectInfo01.ts | 2 +- tests/cases/fourslash/server/typedefinition01.ts | 2 +- tests/cases/unittests/transpile.ts | 5 ----- 5 files changed, 3 insertions(+), 15 deletions(-) diff --git a/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts b/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts index 198c39abe42..9ab29b41798 100644 --- a/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts +++ b/tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts @@ -11,12 +11,5 @@ verify.getSemanticDiagnostics(`[ "length": 11, "category": "error", "code": 8003 - }, - { - "message": "Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file.", - "start": 0, - "length": 11, - "category": "error", - "code": 1148 } ]`); \ No newline at end of file diff --git a/tests/cases/fourslash/server/definition01.ts b/tests/cases/fourslash/server/definition01.ts index 8bf6e73c840..c0c297f89e5 100644 --- a/tests/cases/fourslash/server/definition01.ts +++ b/tests/cases/fourslash/server/definition01.ts @@ -1,7 +1,7 @@ /// // @Filename: b.ts -////import n = require('a/*1*/'); +////import n = require('./a/*1*/'); ////var x = new n.Foo(); // @Filename: a.ts diff --git a/tests/cases/fourslash/server/projectInfo01.ts b/tests/cases/fourslash/server/projectInfo01.ts index 656647715f0..0d8707bf8a1 100644 --- a/tests/cases/fourslash/server/projectInfo01.ts +++ b/tests/cases/fourslash/server/projectInfo01.ts @@ -4,7 +4,7 @@ ////export var test = "test String" // @Filename: b.ts -////import test from "a" +////import test from "./a" // @Filename: c.ts /////// diff --git a/tests/cases/fourslash/server/typedefinition01.ts b/tests/cases/fourslash/server/typedefinition01.ts index e7c37747aba..bde9f4dc4d8 100644 --- a/tests/cases/fourslash/server/typedefinition01.ts +++ b/tests/cases/fourslash/server/typedefinition01.ts @@ -1,7 +1,7 @@ /// // @Filename: b.ts -////import n = require('a'); +////import n = require('./a'); ////var x/*1*/ = new n.Foo(); // @Filename: a.ts diff --git a/tests/cases/unittests/transpile.ts b/tests/cases/unittests/transpile.ts index 6f46bb53405..99a7de1394f 100644 --- a/tests/cases/unittests/transpile.ts +++ b/tests/cases/unittests/transpile.ts @@ -85,11 +85,6 @@ module ts { } - it("Generates correct compilerOptions diagnostics", () => { - // Expecting 5047: "Option 'isolatedModules' can only be used when either option'--module' is provided or option 'target' is 'ES6' or higher." - test(`var x = 0;`, { expectedDiagnosticCodes: [5047] }); - }); - it("Generates no diagnostics with valid inputs", () => { // No errors test(`var x = 0;`, { options: { compilerOptions: { module: ModuleKind.CommonJS } } });