Skip to content

Commit ed1eb2b

Browse files
committed
Fixed up paths in fourslash tests
1 parent f9fb68f commit ed1eb2b

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed

tests/cases/fourslash/getJavaScriptSemanticDiagnostics2.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,5 @@ verify.getSemanticDiagnostics(`[
1111
"length": 11,
1212
"category": "error",
1313
"code": 8003
14-
},
15-
{
16-
"message": "Cannot compile modules unless the '--module' flag is provided. Consider setting the 'module' compiler option in a 'tsconfig.json' file.",
17-
"start": 0,
18-
"length": 11,
19-
"category": "error",
20-
"code": 1148
2114
}
2215
]`);

tests/cases/fourslash/server/definition01.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path="../fourslash.ts"/>
22

33
// @Filename: b.ts
4-
////import n = require('a/*1*/');
4+
////import n = require('./a/*1*/');
55
////var x = new n.Foo();
66

77
// @Filename: a.ts

tests/cases/fourslash/server/projectInfo01.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
////export var test = "test String"
55

66
// @Filename: b.ts
7-
////import test from "a"
7+
////import test from "./a"
88

99
// @Filename: c.ts
1010
/////// <reference path="a.ts"/>

tests/cases/fourslash/server/typedefinition01.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path="../fourslash.ts"/>
22

33
// @Filename: b.ts
4-
////import n = require('a');
4+
////import n = require('./a');
55
////var x/*1*/ = new n.Foo();
66

77
// @Filename: a.ts

tests/cases/unittests/transpile.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ module ts {
8585

8686
}
8787

88-
it("Generates correct compilerOptions diagnostics", () => {
89-
// Expecting 5047: "Option 'isolatedModules' can only be used when either option'--module' is provided or option 'target' is 'ES6' or higher."
90-
test(`var x = 0;`, { expectedDiagnosticCodes: [5047] });
91-
});
92-
9388
it("Generates no diagnostics with valid inputs", () => {
9489
// No errors
9590
test(`var x = 0;`, { options: { compilerOptions: { module: ModuleKind.CommonJS } } });

0 commit comments

Comments
 (0)