diff --git a/src/harness/unittests/tsserverProjectSystem.ts b/src/harness/unittests/tsserverProjectSystem.ts index 941215fc3ae..9bf15235725 100644 --- a/src/harness/unittests/tsserverProjectSystem.ts +++ b/src/harness/unittests/tsserverProjectSystem.ts @@ -56,15 +56,11 @@ namespace ts.projectSystem { return this.installTypingHost; } - installPackage(packageName: string) { - return true; - } - isPackageInstalled(packageName: string) { return true; } - runTsd(cachePath: string, typingsToInstall: string[], postInstallAction: (installedTypings: string[]) => void) { + runInstall(cachePath: string, typingsToInstall: string[], postInstallAction: (installedTypings: string[]) => void) { this.postInstallActions.push(map => { postInstallAction(map(typingsToInstall)); }); diff --git a/src/harness/unittests/typingsInstaller.ts b/src/harness/unittests/typingsInstaller.ts index 18c1e89ec72..408d11a7208 100644 --- a/src/harness/unittests/typingsInstaller.ts +++ b/src/harness/unittests/typingsInstaller.ts @@ -157,7 +157,7 @@ namespace ts.projectSystem { }; const host = createServerHost([file1]); let enqueueIsCalled = false; - let runTsdIsCalled = false; + let runInstallIsCalled = false; const installer = new (class extends TestTypingsInstaller { constructor() { super("", host); @@ -168,8 +168,8 @@ namespace ts.projectSystem { } runTsd(cachePath: string, typingsToInstall: string[], postInstallAction: (installedTypings: string[]) => void): void { assert.deepEqual(typingsToInstall, ["node"]); - runTsdIsCalled = true; - super.runTsd(cachePath, typingsToInstall, postInstallAction); + runInstallIsCalled = true; + super.runInstall(cachePath, typingsToInstall, postInstallAction); } })(); @@ -184,7 +184,7 @@ namespace ts.projectSystem { // autoDiscovery is set in typing options - use it even if project contains only .ts files projectService.checkNumberOfProjects({ externalProjects: 1 }); assert.isTrue(enqueueIsCalled, "expected 'enqueueIsCalled' to be true"); - assert.isTrue(runTsdIsCalled, "expected 'runTsdIsCalled' to be true"); + assert.isTrue(runInstallIsCalled, "expected 'runInstallIsCalled' to be true"); }); }); } \ No newline at end of file