Skip to content

Commit

Permalink
fixup! fix: fix reading msvs version on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanStojanovic committed Jun 21, 2023
1 parent 733e0dc commit 376c39d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/test-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ describe('options', function () {

assert.strictEqual(g.opts['force-process-config'], 'true')
})
})

test('options with msvs_version', (t) => {
t.plan(1)

process.env.npm_config_msvs_version = '2017'
it('options with msvs_version', () => {
process.env.npm_config_msvs_version = '2017'

const g = gyp()
g.parseArgv(['rebuild']) // Also sets opts.argv.
const g = gyp()
g.parseArgv(['rebuild']) // Also sets opts.argv.

t.equal(g.opts['msvs-version'], '2017')
assert.strictEqual(g.opts['msvs-version'], '2017')
})
})

0 comments on commit 376c39d

Please # to comment.