Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 292aa42

Browse filesBrowse files
devsnektargos
authored andcommitted
test: fix faulty relpath test
PR-URL: #20954 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b510cdc commit 292aa42
Copy full SHA for 292aa42

File tree

Expand file treeCollapse file tree

1 file changed

+13
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-7
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-fs-realpath-native.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-realpath-native.js
+13-7Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ const common = require('../common');
33
const assert = require('assert');
44
const fs = require('fs');
55

6-
if (!common.isOSX) common.skip('MacOS-only test.');
6+
const filename = __filename.toLowerCase();
77

8-
assert.strictEqual(fs.realpathSync.native('/users'), '/Users');
9-
fs.realpath.native('/users', common.mustCall(function(err, res) {
10-
assert.ifError(err);
11-
assert.strictEqual(res, '/Users');
12-
assert.strictEqual(this, undefined);
13-
}));
8+
assert.strictEqual(
9+
fs.realpathSync.native('./test/parallel/test-fs-realpath-native.js')
10+
.toLowerCase(),
11+
filename);
12+
13+
fs.realpath.native(
14+
'./test/parallel/test-fs-realpath-native.js',
15+
common.mustCall(function(err, res) {
16+
assert.ifError(err);
17+
assert.strictEqual(res.toLowerCase(), filename);
18+
assert.strictEqual(this, undefined);
19+
}));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.