mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
30fb4a015d
PR-URL: https://github.com/nodejs/node/pull/35086 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
19 lines
487 B
JavaScript
19 lines
487 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const fs = require('fs');
|
|
|
|
const filename = __filename.toLowerCase();
|
|
|
|
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.mustSucceed(function(res) {
|
|
assert.strictEqual(res.toLowerCase(), filename);
|
|
assert.strictEqual(this, undefined);
|
|
}));
|