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 italoacasas committed Dec 23, 2016
1 parent bf2c49c commit 81b0cc4
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 81b0cc4

Please sign in to comment.