| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6e84d21 commit b08ce67
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,7 +52,14 @@ function testCwd(options, expectPidType, expectCode = 0, expectData) { | |||
| 52 | 52 | }); | |
| 53 | 53 | ||
| 54 | 54 | child.on('close', common.mustCall(function() { | |
| 55 | - expectData && assert.strictEqual(data.trim(), expectData); | ||
| 55 | + if (expectData) { | ||
| 56 | + // In Windows, compare without considering case | ||
| 57 | + if (common.isWindows) { | ||
| 58 | + assert.strictEqual(data.trim().toLowerCase(), expectData.toLowerCase()); | ||
| 59 | + } else { | ||
| 60 | + assert.strictEqual(data.trim(), expectData); | ||
| 61 | + } | ||
| 62 | + } | ||
| 56 | 63 | })); | |
| 57 | 64 | ||
| 58 | 65 | return child; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments