We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a8e5be + 7bc6306 commit 58877a8Copy full SHA for 58877a8
lib/loader.js
@@ -93,7 +93,7 @@ internals.createRepositoryLoader = (repository) => {
93
94
if (options === undefined && internals.cache.has(url)) {
95
internals.log('From cache: %s', url);
96
- return internals.cache[url];
+ return internals.cache.get(url);
97
}
98
99
try {
test/travis.js
@@ -156,6 +156,11 @@ describe('.travis.yml parsing', () => {
156
resolved: { '14': '14.3.0' }
157
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);
164
165
166
it('resolves and merges (prepend/append)', async () => {
0 commit comments