Browse Source

test: clean up string concat in dlopen-ping-pong

replace string concatenation with template literals.

PR-URL: https://github.com/nodejs/node/pull/15820
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
v9.x-staging
agilbert 7 years ago
committed by Gireesh Punathil
parent
commit
16ed116203
  1. 2
      test/addons/dlopen-ping-pong/test.js

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

@ -11,7 +11,7 @@ const os = require('os');
const bindingPath = require.resolve(`./build/${common.buildType}/binding`);
process.dlopen(module, bindingPath,
os.constants.dlopen.RTLD_NOW | os.constants.dlopen.RTLD_GLOBAL);
module.exports.load(path.dirname(bindingPath) + '/ping.so');
module.exports.load(`${path.dirname(bindingPath)}/ping.so`);
assert.strictEqual(module.exports.ping(), 'pong');
// Check that after the addon is loaded with

Loading…
Cancel
Save