mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure prebuilt binaries for ARM default to v7 when using Electron
This commit is contained in:
@@ -55,4 +55,12 @@ describe('Platform-detection', function () {
|
||||
assert.strictEqual('arm64v8', platform().split('-')[1]);
|
||||
delete process.env.npm_config_arch;
|
||||
});
|
||||
|
||||
it('Can ensure version ARMv7 if electron version is present', function () {
|
||||
process.env.npm_config_arch = 'arm';
|
||||
process.versions.electron = 'test';
|
||||
assert.strictEqual('armv7', platform().split('-')[1]);
|
||||
delete process.env.npm_config_arch;
|
||||
delete process.versions.electron;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user