Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: changed instances of == to ===
Browse files Browse the repository at this point in the history
  • Loading branch information
alFReD-NSH authored and bnoordhuis committed Mar 19, 2012
1 parent 70e6889 commit fb47a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/common.js
Expand Up @@ -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';
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit fb47a33

Please sign in to comment.