Skip to content

Commit 67e2b92

Browse files
danbevjasnell
authored andcommitted
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: #9093 Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent bd7d7a7 commit 67e2b92

File tree

1 file changed

+2
-2
lines changed
  • test/addons/node-module-version

1 file changed

+2
-2
lines changed
+2-2
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)