@@ -77,7 +77,7 @@ describe("extensibilityService", () => {
7777 argsPassedToNpmInstall . packageName = packageName ;
7878 argsPassedToNpmInstall . pathToSave = pathToSave ;
7979 argsPassedToNpmInstall . config = config ;
80- return [ userSpecifiedValue ] ;
80+ return { name : userSpecifiedValue } ;
8181 } ;
8282
8383 const extensibilityService : IExtensibilityService = testInjector . resolve ( ExtensibilityService ) ;
@@ -130,7 +130,7 @@ describe("extensibilityService", () => {
130130 fs . readDirectory = ( dir : string ) : string [ ] => [ extensionName ] ;
131131
132132 const npm : INodePackageManager = testInjector . resolve ( "npm" ) ;
133- npm . install = async ( packageName : string , pathToSave : string , config ?: any ) : Promise < any > => [ extensionName ] ;
133+ npm . install = async ( packageName : string , pathToSave : string , config ?: any ) : Promise < any > => ( { name : extensionName } ) ;
134134
135135 const extensibilityService : IExtensibilityService = testInjector . resolve ( ExtensibilityService ) ;
136136 const actualResult = await extensibilityService . installExtension ( extensionName ) ;
@@ -148,7 +148,7 @@ describe("extensibilityService", () => {
148148 fs . readDirectory = ( dir : string ) : string [ ] => [ extensionName ] ;
149149
150150 const npm : INodePackageManager = testInjector . resolve ( "npm" ) ;
151- npm . install = async ( packageName : string , pathToSave : string , config ?: any ) : Promise < any > => [ extensionName ] ;
151+ npm . install = async ( packageName : string , pathToSave : string , config ?: any ) : Promise < any > => ( { name : extensionName } ) ;
152152
153153 const requireService : IRequireService = testInjector . resolve ( "requireService" ) ;
154154 requireService . require = ( pathToRequire : string ) => {
@@ -230,7 +230,7 @@ describe("extensibilityService", () => {
230230 npm . install = async ( packageName : string , pathToSave : string , config ?: any ) : Promise < any > => {
231231 assert . deepEqual ( packageName , extensionNames [ 0 ] ) ;
232232 isNpmInstallCalled = true ;
233- return [ packageName ] ;
233+ return { name : packageName } ;
234234 } ;
235235
236236 const expectedResults : IExtensionData [ ] = _ . map ( extensionNames , extensionName => ( { extensionName } ) ) ;
0 commit comments