Skip to content

Commit

Permalink
Test astral plane characters in require() module names
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Mar 4, 2019
1 parent bc99cea commit 2038fa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions pax/fixtures/resolve/unicode/πŒ†.js
@@ -0,0 +1 @@
console.log('success')
6 changes: 6 additions & 0 deletions pax/src/test/mod.rs
Expand Up @@ -1135,6 +1135,12 @@ where F: FnMut(&str, &str, Option<&str>, &InputOptions) {
assert_resolves(ctx, "shadowed",
Some("resolve/subdir/subdir2/node_modules/shadowed/index.js"), &cjs);

let ctx = "resolve/hypothetical.js";
assert_resolves(ctx, "./unicode/πŒ†",
Some("resolve/unicode/πŒ†.js"), &cjs);
assert_resolves(ctx, "./unicode/πŒ†.js",
Some("resolve/unicode/πŒ†.js"), &cjs);

let ctx = "resolve-order/hypothetical.js";
assert_resolves(ctx, "./1-file",
Some("resolve-order/1-file"), &cjs);
Expand Down

0 comments on commit 2038fa3

Please sign in to comment.