Tests: improve yarn locator coverage

This commit is contained in:
Lovell Fuller
2023-12-11 21:14:40 +00:00
parent 6e02f9288e
commit 95ba045a69
2 changed files with 17 additions and 7 deletions

View File

@@ -106,7 +106,6 @@ const yarnLocator = () => {
const npmVersion = semverCoerce(optionalDependencies[`@img/sharp-libvips-${buildPlatformArch()}`]).version;
return sha512(`${identHash}npm:${npmVersion}`).slice(0, 10);
} catch {}
/* istanbul ignore next */
return '';
};