diff --git a/test/parallel/test-child-process-cwd.js b/test/parallel/test-child-process-cwd.js index 3251e9225d137c..e876361b167ffb 100644 --- a/test/parallel/test-child-process-cwd.js +++ b/test/parallel/test-child-process-cwd.js @@ -54,7 +54,7 @@ function testCwd(options, expectPidType, expectCode = 0, expectData) { child.on('close', common.mustCall(function() { if (expectData) { // In Windows, compare without considering case - if (process.platform === 'win32') { + if (common.isWindows) { assert.strictEqual(data.trim().toLowerCase(), expectData.toLowerCase()); } else { assert.strictEqual(data.trim(), expectData);