Skip to content

Commit 9bb250b

Browse files
committed
test: enable node-module-version/test.js with debug
Commit fdca79f ("test: enable addons test to pass with debug build") enabled the addons tests to pass when the build type is of type debug (configure --debug). test/addons/node-module-version/test.js was recently added and expects the the build type to be of type Release (like most of the others until recently). This commit allows this test to pass when the build type if of type debug. PR-URL: nodejs#9093 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2ebd445 commit 9bb250b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • test/addons/node-module-version
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22

3-
require('../../common');
3+
const common = require('../../common');
44
const assert = require('assert');
55

66
const re = new RegExp(
77
'was compiled against a different Node.js version using\n' +
88
'NODE_MODULE_VERSION 42. This version of Node.js requires\n' +
99
`NODE_MODULE_VERSION ${process.versions.modules}.`);
1010

11-
assert.throws(() => require('./build/Release/binding'), re);
11+
assert.throws(() => require(`./build/${common.buildType}/binding`), re);

0 commit comments

Comments
 (0)