diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-07-05 16:13:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 16:13:34 +0900 |
commit | cd2525d4cff4e18b1e3e7d29458079942ba2b6c5 (patch) | |
tree | c3f519aba59c57fc43bc30e3c69f12a0a80cc5b0 /cli/tests/node_compat/test/parallel/test-path.js | |
parent | 1ac5fddf54a828f1372e1ff10559d1a4bc70e5c9 (diff) |
test(ext/node): clean up node:path test cases (#19610)
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); |