Skip to content

Commit

Permalink
test: improve test-cluster-worker-constructor.js
Browse files Browse the repository at this point in the history
* use let and const instead of var
* use assert.strictEqual instead assert.equal

PR-URL: #10396
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Italo A. Casas <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
edsadr authored and MylesBorins committed Jan 24, 2017
1 parent 069a7be commit ce25ec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-cluster-worker-constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// validates correct behavior of the cluster.Worker constructor

require('../common');
var assert = require('assert');
var cluster = require('cluster');
var worker;
const assert = require('assert');
const cluster = require('cluster');
let worker;

worker = new cluster.Worker();
assert.strictEqual(worker.suicide, undefined);
Expand Down

0 comments on commit ce25ec5

Please sign in to comment.