From 8c729cb949501d349fff7d91fe6f0bad70cbf742 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 --- 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 5e8795ef97aa68..451550d33fc8e1 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 });