diff --git a/src/cli_plugin/install/settings.test.js b/src/cli_plugin/install/settings.test.js index 0808ddf03cdc..63375dd18723 100644 --- a/src/cli_plugin/install/settings.test.js +++ b/src/cli_plugin/install/settings.test.js @@ -77,6 +77,14 @@ describe('parse function', function () { }); it('produces expected defaults', function () { + Object.defineProperties(process, { + platform: { + value: 'linux', + }, + arch: { + value: 'x64', + }, + }); expect(parse(command, { ...defaultOptions }, osdPackage)).toMatchInlineSnapshot(` Object { "config": "", @@ -97,6 +105,14 @@ describe('parse function', function () { }); it('consumes overrides', function () { + Object.defineProperties(process, { + platform: { + value: 'linux', + }, + arch: { + value: 'x64', + }, + }); const options = { quiet: true, silent: true, @@ -129,7 +145,7 @@ describe('parse function', function () { value: 'win32', }, arch: { - value: ORIGINAL_ARCHITECTURE, + value: 'x64', }, }); expect(() => parse(command, { ...defaultOptions }, osdPackage)).toThrow( @@ -140,7 +156,7 @@ describe('parse function', function () { it('should not throw when on a non-x64 arch', function () { Object.defineProperties(process, { platform: { - value: ORIGINAL_PLATFORM, + value: 'linux', }, arch: { value: 'arm64',