From 376c39d3dc5b3ff2f82bab94f2c56e21edc44edc Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Wed, 21 Jun 2023 12:21:18 +0200 Subject: [PATCH] fixup! fix: fix reading msvs version on windows --- test/test-options.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/test-options.js b/test/test-options.js index 0ea501614e..8d281db8e8 100644 --- a/test/test-options.js +++ b/test/test-options.js @@ -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') + }) })