File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ internals.createRepositoryLoader = (repository) => {
93
93
94
94
if ( options === undefined && internals . cache . has ( url ) ) {
95
95
internals . log ( 'From cache: %s' , url ) ;
96
- return internals . cache [ url ] ;
96
+ return internals . cache . get ( url ) ;
97
97
}
98
98
99
99
try {
Original file line number Diff line number Diff line change @@ -156,6 +156,11 @@ describe('.travis.yml parsing', () => {
156
156
resolved : { '14' : '14.3.0' }
157
157
}
158
158
} ) ;
159
+
160
+ // verify cache returns the same result
161
+ const result2 = await NodeSupport . detect ( { path : fixture . path } ) ;
162
+ internals . assertCommit ( result2 ) ;
163
+ expect ( result2 ) . to . equal ( result ) ;
159
164
} ) ;
160
165
161
166
it ( 'resolves and merges (prepend/append)' , async ( ) => {
You can’t perform that action at this time.
0 commit comments