Fixed up paths in fourslash tests

This commit is contained in:
Bill Ticehurst 2016-02-10 22:28:52 -08:00
parent f9fb68fbfc
commit ed1eb2b274
5 changed files with 3 additions and 15 deletions

View File

@ -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
}
]`);

View File

@ -1,7 +1,7 @@
/// <reference path="../fourslash.ts"/>
// @Filename: b.ts
////import n = require('a/*1*/');
////import n = require('./a/*1*/');
////var x = new n.Foo();
// @Filename: a.ts

View File

@ -4,7 +4,7 @@
////export var test = "test String"
// @Filename: b.ts
////import test from "a"
////import test from "./a"
// @Filename: c.ts
/////// <reference path="a.ts"/>

View File

@ -1,7 +1,7 @@
/// <reference path="../fourslash.ts"/>
// @Filename: b.ts
////import n = require('a');
////import n = require('./a');
////var x/*1*/ = new n.Foo();
// @Filename: a.ts

View File

@ -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 } } });