Skip to content

Commit

Permalink
test: assert.strictEqual using template literals
Browse files Browse the repository at this point in the history
PR-URL: #15944
Reviewed-By: Lance Ball <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
jmcgui05 authored and MylesBorins committed Oct 25, 2017
1 parent cd57d2d commit 40a98d6
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 40a98d6

Please sign in to comment.