xref: /third_party/node/test/parallel/test-fs-realpath-native.js (revision 1cb0ef41)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
1'use strict';
2const common = require('../common');
3const assert = require('assert');
4const fs = require('fs');
5
6const filename = __filename.toLowerCase();
7
8assert.strictEqual(
9  fs.realpathSync.native('./test/parallel/test-fs-realpath-native.js')
10    .toLowerCase(),
11  filename);
12
13fs.realpath.native(
14  './test/parallel/test-fs-realpath-native.js',
15  common.mustSucceed(function(res) {
16    assert.strictEqual(res.toLowerCase(), filename);
17    assert.strictEqual(this, undefined);
18  }));
19

Indexes created Thu Nov 07 10:32:03 CST 2024