test: changes to use template literal · nodejs/node@1c1312e

Original file line numberDiff line numberDiff line change

@@ -24,7 +24,7 @@ if (cluster.isMaster) {

2424

}));

2525
2626

cluster.on('exit', common.mustCall(function(worker, code) {

27-

assert.strictEqual(code, 0, 'worker exited with error');

27+

assert.strictEqual(code, 0, `worker exited with error code ${code}`);

2828

}, 2));

2929
3030

return;