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 });