deno.land / x / opine@2.3.4 / test / units / regression.test.ts

regression.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { opine } from "../../mod.ts";import { superdeno } from "../deps.ts";import { describe, it } from "../utils.ts";
describe("throw after .end()", function () { it("should fail gracefully", function (done) { const app = opine();
app.get("/", function (_req, res) { res.end("yay"); throw new Error("boom"); });
superdeno(app) .get("/") .expect("yay") .expect(200, done); });});
opine

Version Info

Tagged at
2 years ago