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 <cjihrig@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
edsadr authored and MylesBorins committed Jan 23, 2017
1 parent 2fb30f8 commit 312745a
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 312745a

Please sign in to comment.