Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Dec 10, 2024
1 parent 8f2d28f commit 032d3f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/router_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Deno.test("UrlPatternRouter - GET get first match", () => {
params: {},
handlers: [[A]],
methodMatch: true,
pattern: "/",
patternMatch: true,
});
});
Expand All @@ -48,6 +49,7 @@ Deno.test("UrlPatternRouter - GET get matches with middlewares", () => {
params: {},
handlers: [[A], [B], [C]],
methodMatch: true,
pattern: "/",
patternMatch: true,
});
});
Expand All @@ -62,6 +64,7 @@ Deno.test("UrlPatternRouter - GET extract params", () => {
params: { foo: "a", bar: "b" },
handlers: [[A]],
methodMatch: true,
pattern: "/:foo/:bar/c",
patternMatch: true,
});

Expand All @@ -71,6 +74,7 @@ Deno.test("UrlPatternRouter - GET extract params", () => {
params: { foo: "a a", bar: "b" },
handlers: [[A]],
methodMatch: true,
pattern: "/:foo/:bar/c",
patternMatch: true,
});
});
Expand All @@ -85,6 +89,7 @@ Deno.test("UrlPatternRouter - Wrong method match", () => {
params: {},
handlers: [],
methodMatch: false,
pattern: "/foo",
patternMatch: true,
});
});
Expand All @@ -101,6 +106,7 @@ Deno.test("UrlPatternRouter - wrong + correct method", () => {
params: {},
handlers: [[B]],
methodMatch: true,
pattern: "/foo",
patternMatch: true,
});
});
Expand All @@ -117,6 +123,7 @@ Deno.test("UrlPatternRouter - convert patterns automatically", () => {
},
handlers: [[A]],
methodMatch: true,
pattern: "/books/:id",
patternMatch: true,
});
});
Expand Down

0 comments on commit 032d3f3

Please sign in to comment.