Skip to content

Commit

Permalink
test: add more tests for resolve (resolves #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 11, 2024
1 parent e754f7d commit 45d8a29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/resolve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { resolveSync, resolvePathSync } from "../src";
const tests = [
// Resolve to path
{ input: "ufo", action: "resolves" },
{ input: "./fixture/cjs.mjs", action: "resolves" },
{ input: "./fixture/foo", action: "resolves" },
// Return same input as-is
{ input: "https://foo.com/a/b.js?a=1", action: "same" },
// Throw error
Expand Down

0 comments on commit 45d8a29

Please sign in to comment.