class MockRouter
implements IRouter
import { MockRouter } from "https://deno.land/x/deno_nest@v3.3.1/tests/common_helper.ts";
Properties
map: Map<MethodType, Map<string, MiddlewareHandler>>
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
use(fn: MiddlewareHandler)
useOriginMiddleware(_fn: Function, _path?: string): void