-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use unusual chars in the path to ensure our tests are robust
PR-URL: #48409 Reviewed-By: Jacob Smith <[email protected]>
- Loading branch information
Showing
12 changed files
with
82 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
// We must load the CJS version here because the ESM wrapper call `hasIPv6` | ||
// which compiles a RegEx. | ||
// eslint-disable-next-line node-core/require-common-first | ||
import '../common/index.js'; | ||
import common from '../common/index.js'; | ||
import assert from 'node:assert'; | ||
|
||
assert.strictEqual(RegExp.$_, ''); | ||
assert.strictEqual(RegExp.$0, undefined); | ||
assert.strictEqual(RegExp.$1, ''); | ||
assert.strictEqual(RegExp.$2, ''); | ||
assert.strictEqual(RegExp.$3, ''); | ||
assert.strictEqual(RegExp.$4, ''); | ||
assert.strictEqual(RegExp.$5, ''); | ||
assert.strictEqual(RegExp.$6, ''); | ||
assert.strictEqual(RegExp.$7, ''); | ||
assert.strictEqual(RegExp.$8, ''); | ||
assert.strictEqual(RegExp.$9, ''); | ||
assert.strictEqual(RegExp.input, ''); | ||
assert.strictEqual(RegExp.lastMatch, ''); | ||
assert.strictEqual(RegExp.lastParen, ''); | ||
assert.strictEqual(RegExp.leftContext, ''); | ||
assert.strictEqual(RegExp.rightContext, ''); | ||
assert.strictEqual(RegExp['$&'], ''); | ||
assert.strictEqual(RegExp['$`'], ''); | ||
assert.strictEqual(RegExp['$+'], ''); | ||
assert.strictEqual(RegExp["$'"], ''); | ||
if (!common.isInsideDirWithUnusualChars) { | ||
assert.strictEqual(RegExp.$_, ''); | ||
assert.strictEqual(RegExp.$0, undefined); | ||
assert.strictEqual(RegExp.$1, ''); | ||
assert.strictEqual(RegExp.$2, ''); | ||
assert.strictEqual(RegExp.$3, ''); | ||
assert.strictEqual(RegExp.$4, ''); | ||
assert.strictEqual(RegExp.$5, ''); | ||
assert.strictEqual(RegExp.$6, ''); | ||
assert.strictEqual(RegExp.$7, ''); | ||
assert.strictEqual(RegExp.$8, ''); | ||
assert.strictEqual(RegExp.$9, ''); | ||
assert.strictEqual(RegExp.input, ''); | ||
assert.strictEqual(RegExp.lastMatch, ''); | ||
assert.strictEqual(RegExp.lastParen, ''); | ||
assert.strictEqual(RegExp.leftContext, ''); | ||
assert.strictEqual(RegExp.rightContext, ''); | ||
assert.strictEqual(RegExp['$&'], ''); | ||
assert.strictEqual(RegExp['$`'], ''); | ||
assert.strictEqual(RegExp['$+'], ''); | ||
assert.strictEqual(RegExp["$'"], ''); | ||
} |