diff options
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-path.js')
-rw-r--r-- | cli/tests/node_compat/test/parallel/test-path.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-path.js b/cli/tests/node_compat/test/parallel/test-path.js index 657fdc951..b68f0c2d4 100644 --- a/cli/tests/node_compat/test/parallel/test-path.js +++ b/cli/tests/node_compat/test/parallel/test-path.js @@ -2,8 +2,8 @@ // deno-lint-ignore-file // Copyright Joyent and Node contributors. All rights reserved. MIT license. -// Taken from Node 16.13.0 -// This file is automatically generated by "node/_tools/setup.ts". Do not modify this file manually +// Taken from Node 18.12.1 +// This file is automatically generated by `tools/node_compat/setup.ts`. Do not modify this file manually. // Copyright Joyent, Inc. and other Node contributors. // @@ -30,8 +30,6 @@ const common = require('../common'); const assert = require('assert'); const path = require('path'); -const posix = require('path/posix'); -const win32 = require('path/win32'); // Test thrown TypeErrors const typeErrorTests = [true, false, 7, null, {}, undefined, [], NaN]; @@ -80,11 +78,3 @@ if (common.isWindows) assert.strictEqual(path, path.win32); else assert.strictEqual(path, path.posix); - -// referential invariants -assert.strictEqual(path.posix, posix); -assert.strictEqual(path.win32, win32); -assert.strictEqual(path.posix, path.posix.posix); -assert.strictEqual(path.win32, path.posix.win32); -assert.strictEqual(path.posix, path.win32.posix); -assert.strictEqual(path.win32, path.win32.win32); |