2017-10-05 13:10:03 +02:00
|
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
const assert = require('assert');
|
|
|
|
const fs = require('fs');
|
|
|
|
|
2018-05-24 19:32:50 -05:00
|
|
|
const filename = __filename.toLowerCase();
|
2017-10-05 13:10:03 +02:00
|
|
|
|
2018-05-24 19:32:50 -05:00
|
|
|
assert.strictEqual(
|
|
|
|
fs.realpathSync.native('./test/parallel/test-fs-realpath-native.js')
|
|
|
|
.toLowerCase(),
|
|
|
|
filename);
|
|
|
|
|
|
|
|
fs.realpath.native(
|
|
|
|
'./test/parallel/test-fs-realpath-native.js',
|
2020-09-06 22:27:07 +02:00
|
|
|
common.mustSucceed(function(res) {
|
2018-05-24 19:32:50 -05:00
|
|
|
assert.strictEqual(res.toLowerCase(), filename);
|
|
|
|
assert.strictEqual(this, undefined);
|
|
|
|
}));
|