@@ -39,15 +39,15 @@ interface ITestCase extends ITestSetup {
3939}
4040
4141function createPacoteOptions ( source : Object ) : Object {
42- let options : { [ index : string ] : any } = { } ;
42+ const options : { [ index : string ] : any } = { } ;
4343 npmconfig . read ( ) . forEach ( ( value : any , key : string ) => {
4444 // replace env ${VARS} in strings with the process.env value
4545 options [ key ] = typeof value !== 'string' ? value : value . replace ( / \$ { ( [ ^ } ] + ) } / , ( _ , envVar ) => process . env [ envVar ] ) ;
4646 } ) ;
4747
4848 // Copy any original source keys over our defaults
49- for ( let key in source ) {
50- options [ key ] = source [ key ] ;
49+ for ( const key in source ) {
50+ options [ key ] = source [ key ] ;
5151 }
5252 return options ;
5353}
@@ -121,13 +121,13 @@ describe("pacoteService", () => {
121121 const testInjector = createTestInjector ( opts ) ;
122122
123123 if ( opts . isLocalPackage ) {
124- const oldPath = path . resolve ;
125- sandboxInstance . stub ( path , "resolve" ) . callsFake ( ( value :string ) => {
126- if ( value === packageName ) {
127- return fullPath ;
128- }
129- return oldPath ( value ) ;
130- } ) ;
124+ const oldPath = path . resolve ;
125+ sandboxInstance . stub ( path , "resolve" ) . callsFake ( ( value :string ) => {
126+ if ( value === packageName ) {
127+ return fullPath ;
128+ }
129+ return oldPath ( value ) ;
130+ } ) ;
131131 }
132132
133133 return testInjector . resolve < IPacoteService > ( "pacoteService" ) ;
0 commit comments