Expose platform-arch of vendored binaries #2928

This commit is contained in:
Lovell Fuller
2021-12-12 13:38:00 +00:00
parent 9755629cfd
commit 3da258f6fb
5 changed files with 43 additions and 2 deletions

View File

@@ -131,4 +131,13 @@ describe('Utilities', function () {
assert.strictEqual('string', typeof sharp.versions.vips);
});
});
describe('Vendor', function () {
it('Contains expected attributes', function () {
assert.strictEqual('object', typeof sharp.vendor);
assert.strictEqual('string', typeof sharp.vendor.current);
assert.strictEqual(true, Array.isArray(sharp.vendor.installed));
assert.strictEqual(true, sharp.vendor.installed.length > 0);
});
});
});