mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 13:10:09 +02:00
update dependencies
This commit is contained in:
43
app/node_modules/electron-packager/test/targets.js
generated
vendored
43
app/node_modules/electron-packager/test/targets.js
generated
vendored
@@ -60,14 +60,12 @@ test('validateListFromOptions does not take non-Array/String values', t => {
|
||||
})
|
||||
|
||||
test('validateListFromOptions works for armv7l host and target arch', t => {
|
||||
const sandbox = sinon.createSandbox()
|
||||
|
||||
sandbox.stub(process, 'arch').value('arm')
|
||||
sandbox.stub(process, 'config').value({variables: {arm_version: '7'}})
|
||||
sinon.stub(process, 'arch').value('arm')
|
||||
sinon.stub(process, 'config').value({variables: {arm_version: '7'}})
|
||||
|
||||
t.deepEqual(targets.validateListFromOptions({}, 'arch'), ['armv7l'])
|
||||
|
||||
sandbox.restore()
|
||||
sinon.restore()
|
||||
})
|
||||
|
||||
testMultiTarget('build for all available official targets', {all: true, electronVersion: '1.8.2'},
|
||||
@@ -95,45 +93,12 @@ test('fails with invalid platform', util.invalidOptionTest({
|
||||
platform: 'dos'
|
||||
}))
|
||||
|
||||
test('hostArch detects incorrectly configured armv7l Node', t => {
|
||||
const sandbox = sinon.createSandbox()
|
||||
|
||||
sandbox.stub(targets, 'unameArch').returns('armv7l')
|
||||
sandbox.stub(process, 'arch').value('arm')
|
||||
sandbox.stub(process, 'config').value({variables: {arm_version: '6'}})
|
||||
|
||||
t.is(targets.hostArch(), 'armv7l')
|
||||
|
||||
sandbox.restore()
|
||||
})
|
||||
|
||||
test('hostArch detects correctly configured armv7l Node', t => {
|
||||
const sandbox = sinon.createSandbox()
|
||||
|
||||
sandbox.stub(process, 'arch').value('arm')
|
||||
sandbox.stub(process, 'config').value({variables: {arm_version: '7'}})
|
||||
|
||||
t.is(targets.hostArch(), 'armv7l')
|
||||
|
||||
sandbox.restore()
|
||||
})
|
||||
|
||||
test('hostArch cannot determine ARM version', t => {
|
||||
const sandbox = sinon.createSandbox()
|
||||
|
||||
sandbox.stub(process, 'arch').value('arm')
|
||||
sandbox.stub(process, 'config').value({variables: {arm_version: '99'}})
|
||||
|
||||
t.is(targets.hostArch(), 'arm')
|
||||
|
||||
sandbox.restore()
|
||||
})
|
||||
|
||||
testMultiTarget('invalid official combination', {arch: 'ia32', platform: 'darwin'}, 0, 'Package should not be generated for invalid official combination')
|
||||
testMultiTarget('platform=linux and arch=arm64 with a supported official Electron version', {arch: 'arm64', platform: 'linux', electronVersion: '1.8.0'}, 1, 'Package should be generated for arm64')
|
||||
testMultiTarget('platform=linux and arch=arm64 with an unsupported official Electron version', {arch: 'arm64', platform: 'linux'}, 0, 'Package should not be generated for arm64')
|
||||
testMultiTarget('platform=linux and arch=mips64el with a supported official Electron version', {arch: 'mips64el', platform: 'linux', electronVersion: '1.8.2-beta.5'}, 1, 'Package should be generated for mips64el')
|
||||
testMultiTarget('platform=linux and arch=mips64el with an unsupported official Electron version', {arch: 'mips64el', platform: 'linux'}, 0, 'Package should not be generated for mips64el')
|
||||
testMultiTarget('platform=linux and arch=mips64el with an unsupported official Electron version (2.0.0)', {arch: 'mips64el', platform: 'linux', electronVersion: '2.0.0'}, 0, 'Package should not be generated for mips64el')
|
||||
testMultiTarget('unofficial arch', {arch: 'z80', platform: 'linux', download: {mirror: 'mirror'}}, 1,
|
||||
'Package should be generated for non-standard arch from non-official mirror')
|
||||
testMultiTarget('unofficial platform', {arch: 'ia32', platform: 'minix', download: {mirror: 'mirror'}}, 1,
|
||||
|
Reference in New Issue
Block a user