Skip to content

Commit

Permalink
test: assert.strictEqual using template literals
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15944
Reviewed-By: Lance Ball <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
jmcgui05 authored and addaleax committed Oct 11, 2017
1 parent a15a49d commit 7cfc8eb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/parallel/test-cluster-process-disconnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ const cluster = require('cluster');
if (cluster.isMaster) {
const worker = cluster.fork();
worker.on('exit', common.mustCall((code, signal) => {
assert.strictEqual(code, 0, 'worker did not exit normally');
assert.strictEqual(signal, null, 'worker did not exit normally');
assert.strictEqual(
code,
0,
`Worker did not exit normally with code: ${code}`
);
assert.strictEqual(
signal,
null,
`Worker did not exit normally with signal: ${signal}`
);
}));
} else {
const net = require('net');
Expand Down

0 comments on commit 7cfc8eb

Please sign in to comment.