Skip to content

Commit 9362a70

Browse files
committed
test: replace process.platform check with common.isWindows
1 parent a6ef21c commit 9362a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-child-process-cwd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function testCwd(options, expectPidType, expectCode = 0, expectData) {
5454
child.on('close', common.mustCall(function() {
5555
if (expectData) {
5656
// In Windows, compare without considering case
57-
if (process.platform === 'win32') {
57+
if (common.isWindows) {
5858
assert.strictEqual(data.trim().toLowerCase(), expectData.toLowerCase());
5959
} else {
6060
assert.strictEqual(data.trim(), expectData);

0 commit comments

Comments
 (0)