diff --git a/test/common.js b/test/common.js index 2656c91b38..111acf1b7b 100644 --- a/test/common.js +++ b/test/common.js @@ -28,7 +28,7 @@ exports.libDir = path.join(exports.testDir, '../lib'); exports.tmpDir = path.join(exports.testDir, 'tmp'); exports.PORT = 12346; -if (process.platform == 'win32') { +if (process.platform === 'win32') { exports.PIPE = '\\\\.\\pipe\\libuv-test'; } else { exports.PIPE = exports.tmpDir + '/test.sock'; @@ -53,7 +53,7 @@ exports.indirectInstanceOf = function(obj, cls) { exports.ddCommand = function(filename, kilobytes) { - if (process.platform == 'win32') { + if (process.platform === 'win32') { var p = path.resolve(exports.fixturesDir, 'create-file.js'); return '"' + process.argv[0] + '" "' + p + '" "' + filename + '" ' + (kilobytes * 1024); @@ -66,7 +66,7 @@ exports.ddCommand = function(filename, kilobytes) { exports.spawnPwd = function(options) { var spawn = require('child_process').spawn; - if (process.platform == 'win32') { + if (process.platform === 'win32') { return spawn('cmd.exe', ['/c', 'cd'], options); } else { return spawn('pwd', [], options);