Add tests for projectinfo command

This commit is contained in:
Zhengbo Li
2015-06-01 17:45:28 -07:00
parent 040dbd9def
commit 70675162dc
6 changed files with 59 additions and 10 deletions

View File

@@ -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 {

View 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"])