★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/292aa42bd1Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files

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>
  • Loading branch information...
devsnek authored and targos committed May 25, 2018
1 parent b510cdc commit 292aa42bd1c1056f1d35acaf0d728eca55eb7487
Showing with 13 additions and 7 deletions.
  1. +13 −7 test/parallel/test-fs-realpath-native.js
@@ -3,11 +3,17 @@ const common = require('../common');
const assert = require('assert');
const fs = require('fs');

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

assert.strictEqual(fs.realpathSync.native('/users'), '/Users');
fs.realpath.native('/users', common.mustCall(function(err, res) {
assert.ifError(err);
assert.strictEqual(res, '/Users');
assert.strictEqual(this, undefined);
}));
assert.strictEqual(
fs.realpathSync.native('./test/parallel/test-fs-realpath-native.js')
.toLowerCase(),
filename);

fs.realpath.native(
'./test/parallel/test-fs-realpath-native.js',
common.mustCall(function(err, res) {
assert.ifError(err);
assert.strictEqual(res.toLowerCase(), filename);
assert.strictEqual(this, undefined);
}));

0 comments on commit 292aa42

Please sign in to comment.
You can’t perform that action at this time.