Simplify test and add explanatory assertion

This commit is contained in:
Benjamin Lichtman
2017-12-28 11:22:41 -08:00
parent 90e11f0797
commit b9ea3471a4
2 changed files with 2 additions and 5 deletions

View File

@@ -1185,13 +1185,9 @@ namespace ts.projectSystem {
});
it("external project for dynamic file", () => {
const file1 = {
path: "/a/b/f1.ts",
content: "let x =1;"
};
const externalProjectName = "^ScriptDocument1 file1.ts";
const externalFiles = toExternalFiles(["^ScriptDocument1 file1.ts"]);
const host = createServerHost([file1]);
const host = createServerHost([]);
const projectService = createProjectService(host);
projectService.openExternalProject({
rootFiles: externalFiles,