deno.land / x / opine@2.3.4 / examples / error / index.test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { superdeno } from "../../test/deps.ts";import { describe, it } from "../../test/utils.ts";import { app } from "./index.ts";
describe("error", () => { describe("GET /", function () { it("should respond with 500", function (done) { superdeno(app) .get("/") .expect(500, done); }); });
describe("GET /next", function () { it("should respond with 500", function (done) { superdeno(app) .get("/next") .expect(500, done); }); });
describe("GET /missing", function () { it("should respond with 404", function (done) { superdeno(app) .get("/missing") .expect(404, done); }); });});
opine

Version Info

Tagged at
2 years ago