From fc711314f18339c2f6f019c32ff9660048da9c13 Mon Sep 17 00:00:00 2001 From: weiyuanyue Date: Sun, 16 Jul 2017 15:28:44 +0800 Subject: [PATCH] test: replace string concatenation with template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace string concatenation with template literals in test/async-hooks/verify-graph.js. PR-URL: https://github.com/nodejs/node/pull/14279 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Timothy Gu Reviewed-By: Tobias Nießen Reviewed-By: Gireesh Punathil Reviewed-By: Refael Ackermann --- test/async-hooks/verify-graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/async-hooks/verify-graph.js b/test/async-hooks/verify-graph.js index 5e8795ef97..451550d33f 100644 --- a/test/async-hooks/verify-graph.js +++ b/test/async-hooks/verify-graph.js @@ -106,7 +106,7 @@ module.exports.printGraph = function printGraph(hooks) { function procesNode(x) { const key = x.type.replace(/WRAP/, '').toLowerCase(); if (!ids[key]) ids[key] = 1; - const id = key + ':' + ids[key]++; + const id = `${key}:${ids[key]++}`; uidtoid[x.uid] = id; const triggerAsyncId = uidtoid[x.triggerAsyncId] || null; graph.push({ type: x.type, id, triggerAsyncId });