Skip to content

Commit

Permalink
test: replace process.platform check with common.isWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
EarlyRiser42 committed Jul 23, 2024
1 parent a6ef21c commit 9362a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9362a70

Please sign in to comment.