mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
fix: _ in npm_config_ env variables
This commit is contained in:
parent
a32a9aa8e6
commit
eef4eefccb
3 changed files with 17 additions and 1 deletions
|
@ -29,3 +29,14 @@ test('options in environment', (t) => {
|
|||
|
||||
t.deepEqual(Object.keys(g.opts).sort(), keys.sort())
|
||||
})
|
||||
|
||||
test('options with spaces in environment', (t) => {
|
||||
t.plan(1)
|
||||
|
||||
process.env.npm_config_force_process_config = 'true'
|
||||
|
||||
const g = gyp()
|
||||
g.parseArgv(['rebuild']) // Also sets opts.argv.
|
||||
|
||||
t.equal(g.opts['force-process-config'], 'true')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue