deno.land / x / opine@2.3.4 / test / units / req.path.test.ts

req.path.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("req", function () { describe(".path", function () { it("should return the parsed pathname", function (done) { const app = opine();
app.use(function (req, res) { res.end(req.path); });
superdeno(app) .get("/login?redirect=/post/1/comments") .expect("/login", done); }); });});
opine

Version Info

Tagged at
2 years ago