Compare commits
1 Commits
main
...
f0ea182d2f
Author | SHA1 | Date | |
---|---|---|---|
f0ea182d2f |
@@ -268,15 +268,6 @@ describe("Router", () => {
|
||||
const res = await router.handle(req);
|
||||
assertEquals(res.status, 500);
|
||||
});
|
||||
|
||||
it("should handle no handlers returning a response", async () => {
|
||||
router.get("/test", async () => undefined as unknown as Response);
|
||||
const req = new Request("http://localhost/test", {
|
||||
method: "GET",
|
||||
});
|
||||
const res = await router.handle(req);
|
||||
assertEquals(res.status, 501);
|
||||
});
|
||||
});
|
||||
|
||||
describe("HTTP Methods", () => {
|
||||
|
Reference in New Issue
Block a user