class MockRouter
implements IRouter
import { MockRouter } from "https://deno.land/x/deno_nest@v3.5.2/tests/common_helper.ts";
Properties
map: Map<Uppercase<MethodType>, Map<string, MethodHandler>>
Methods
private
handle()delete(path: string, fn: MiddlewareHandler)
get(path: string, fn: MiddlewareHandler)
notFound(_fn: NotFoundHandler): void
patch(path: string, fn: MiddlewareHandler)
post(path: string, fn: MiddlewareHandler)
put(path: string, fn: MiddlewareHandler)
routes(): void
startServer(options: ListenOptions)
use(fn: MiddlewareHandler)
useOriginMiddleware(_fn: Function, _path?: string): void