From aa5bb434898d405bd372995c7629a4927d0a9533 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 5 Jul 2017 14:43:55 -0700 Subject: [PATCH] tools: generate template literal for addon tests Instead of generating string concatenation, generate a template literal. This is mostly useful as a pre-emptive measure for avoiding problems when (if?) we enable the prefer-template lint rule in the test directory. --- tools/doc/addon-verify.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/doc/addon-verify.js b/tools/doc/addon-verify.js index e480a0d1bed050..9af040b33986f5 100644 --- a/tools/doc/addon-verify.js +++ b/tools/doc/addon-verify.js @@ -66,7 +66,10 @@ function verifyFiles(files, blockName, onprogress, ondone) { if (name === 'test.js') { files[name] = `'use strict'; const common = require('../../common'); -${files[name].replace('Release', "' + common.buildType + '")} +${files[name].replace( + "'./build/Release/addon'", + // eslint-disable-next-line no-template-curly-in-string + '`./build/${common.buildType}/addon`')} `; } return {