Skip to content

Commit 16ed116

Browse files
agilbertgireeshpunathil
agilbert
authored andcommitted
test: clean up string concat in dlopen-ping-pong
replace string concatenation with template literals. PR-URL: #15820 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent bafa228 commit 16ed116

File tree

1 file changed

+1
-1
lines changed
  • test/addons/dlopen-ping-pong

1 file changed

+1
-1
lines changed

test/addons/dlopen-ping-pong/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const os = require('os');
1111
const bindingPath = require.resolve(`./build/${common.buildType}/binding`);
1212
process.dlopen(module, bindingPath,
1313
os.constants.dlopen.RTLD_NOW | os.constants.dlopen.RTLD_GLOBAL);
14-
module.exports.load(path.dirname(bindingPath) + '/ping.so');
14+
module.exports.load(`${path.dirname(bindingPath)}/ping.so`);
1515
assert.strictEqual(module.exports.ping(), 'pong');
1616

1717
// Check that after the addon is loaded with

0 commit comments

Comments
 (0)