From 434d410f1525aa9410deb219e7bd8c546eba9149 Mon Sep 17 00:00:00 2001 From: agilbert Date: Fri, 6 Oct 2017 09:31:59 -0700 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- test/addons/dlopen-ping-pong/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/addons/dlopen-ping-pong/test.js b/test/addons/dlopen-ping-pong/test.js index 9f07715cf1..c533593496 100644 --- a/test/addons/dlopen-ping-pong/test.js +++ b/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