Skip to content

Commit

Permalink
More .. tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Mar 4, 2019
1 parent 6f8781c commit bc99cea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pax/src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,14 @@ where F: FnMut(&str, &str, Option<&str>, &InputOptions) {
Some("resolve/mod-outer/index.js"), &esm);
assert_resolves(ctx, "../mod-outer/mod-parent-noslash/",
Some("resolve/mod-outer/index.js"), &esm);
assert_resolves("resolve/mod-outer/mod-parent-slash/hypothetical.js", "..",
Some("resolve/mod-outer/main.js"), &esm);
assert_resolves("resolve/mod-outer/mod-parent-slash/hypothetical.js", "../",
Some("resolve/mod-outer/main.js"), &esm);
assert_resolves("resolve/mod-outer/mod-parent-noslash/hypothetical.js", "..",
Some("resolve/mod-outer/main.js"), &esm);
assert_resolves("resolve/mod-outer/mod-parent-noslash/hypothetical.js", "../",
Some("resolve/mod-outer/main.js"), &esm);

assert_resolves("resolve/dir-js/hypothetical.js", ".",
Some("resolve/dir-js/index.js"), &cjs);
Expand Down

0 comments on commit bc99cea

Please sign in to comment.