mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Add tests for projectinfo command
This commit is contained in:
@@ -455,6 +455,10 @@ module FourSlashInterface {
|
||||
public getSemanticDiagnostics(expected: string) {
|
||||
FourSlash.currentTestState.getSemanticDiagnostics(expected);
|
||||
}
|
||||
|
||||
public ProjectInfo(expected: string []) {
|
||||
FourSlash.currentTestState.verifyProjectInfo(expected);
|
||||
}
|
||||
}
|
||||
|
||||
export class edit {
|
||||
|
||||
10
tests/cases/fourslash/server/projectInfo.ts
Normal file
10
tests/cases/fourslash/server/projectInfo.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference path="../fourslash.ts"/>
|
||||
|
||||
// @Filename: a.ts
|
||||
//// import test from "b"
|
||||
|
||||
// @Filename: b.ts
|
||||
//// export var test = "test String"
|
||||
|
||||
goTo.file("a.ts")
|
||||
verify.ProjectInfo(["lib.d.ts", "b.ts", "a.ts"])
|
||||
Reference in New Issue
Block a user