11import { Yok } from "../lib/common/yok" ;
22import * as stubs from "./stubs" ;
33import { assert } from "chai" ;
4- import { NodePackageManager } from "../lib/node- package-manager " ;
4+ import { NPM } from "../lib/package-managers/npm " ;
55import { IInjector } from "../lib/common/definitions/yok" ;
66
77function createTestInjector ( configuration : { } = { } ) : IInjector {
@@ -12,7 +12,7 @@ function createTestInjector(configuration: {} = {}): IInjector {
1212 injector . register ( "childProcess" , stubs . ChildProcessStub ) ;
1313 injector . register ( "httpClient" , { } ) ;
1414 injector . register ( "fs" , stubs . FileSystemStub ) ;
15- injector . register ( "npm" , NodePackageManager ) ;
15+ injector . register ( "npm" , NPM ) ;
1616 injector . register ( "pacoteService" , {
1717 manifest : ( ) => Promise . resolve ( ) ,
1818 } ) ;
@@ -52,7 +52,7 @@ describe("node-package-manager", () => {
5252 ] . forEach ( ( testCase ) => {
5353 it ( testCase . name , async ( ) => {
5454 const testInjector = createTestInjector ( ) ;
55- const npm = testInjector . resolve < NodePackageManager > ( "npm" ) ;
55+ const npm = testInjector . resolve < NPM > ( "npm" ) ;
5656 const templateNameParts = await npm . getPackageNameParts (
5757 testCase . templateFullName
5858 ) ;
@@ -87,7 +87,7 @@ describe("node-package-manager", () => {
8787 ] . forEach ( ( testCase ) => {
8888 it ( testCase . name , async ( ) => {
8989 const testInjector = createTestInjector ( ) ;
90- const npm = testInjector . resolve < NodePackageManager > ( "npm" ) ;
90+ const npm = testInjector . resolve < NPM > ( "npm" ) ;
9191 const templateFullName = await npm . getPackageFullName ( {
9292 name : testCase . templateName ,
9393 version : testCase . templateVersion ,
0 commit comments