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 <lball@redhat.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
jmcgui05 authored and MylesBorins committed Oct 11, 2017
1 parent 329d22f commit 3b682aa
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 3b682aa

Please sign in to comment.