mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
Fixed up paths in fourslash tests
This commit is contained in:
parent
f9fb68fbfc
commit
ed1eb2b274
@ -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
|
||||
}
|
||||
]`);
|
||||
@ -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
|
||||
|
||||
@ -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"/>
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 } } });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user