From 371a785f6d9ffc952485f4f78a23173d7bfc3e1f Mon Sep 17 00:00:00 2001 From: mark hughes Date: Thu, 1 Dec 2016 10:24:08 -0600 Subject: [PATCH] test: refactor test-signal-unregister * var -> const * assert.equal() -> assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/9920 Reviewed-By: Colin Ihrig Reviewed-By: Prince John Wesley Reviewed-By: Luigi Pinca --- test/parallel/test-signal-unregister.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-signal-unregister.js b/test/parallel/test-signal-unregister.js index b65ade73db9422..88c6a367a9cb37 100644 --- a/test/parallel/test-signal-unregister.js +++ b/test/parallel/test-signal-unregister.js @@ -1,13 +1,13 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); -var spawn = require('child_process').spawn; +const common = require('../common'); +const assert = require('assert'); +const spawn = require('child_process').spawn; -var child = spawn(process.argv[0], [common.fixturesDir + '/should_exit.js']); +const child = spawn(process.argv[0], [common.fixturesDir + '/should_exit.js']); child.stdout.once('data', function() { child.kill('SIGINT'); }); child.on('exit', common.mustCall(function(exitCode, signalCode) { - assert.equal(exitCode, null); - assert.equal(signalCode, 'SIGINT'); + assert.strictEqual(exitCode, null); + assert.strictEqual(signalCode, 'SIGINT'); }));