Add support for Yarn Plug'n'Play filesystem layout #3888

This commit is contained in:
Lovell Fuller
2023-12-10 19:38:03 +00:00
parent 004fff975f
commit 1592f96b7b
5 changed files with 27 additions and 5 deletions

View File

@@ -144,4 +144,10 @@ describe('libvips binaries', function () {
libvips.log(new Error('problem'));
});
});
it('yarn locator hash', () => {
const locatorHash = libvips.yarnLocator();
assert.strictEqual(locatorHash.length, 10);
assert.strict(/[a-f0-9]{10}/.test(locatorHash));
});
});