Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_api_server/src/testing/mock-api.ts>MockApi

API Server for deno for functional programmed endpoints
Latest
class MockApi
extends Api
import { MockApi } from "https://deno.land/x/deno_api_server@v0.6.4/src/testing/mock-api.ts";

Constructors

new
MockApi(serverConfig: IServerConfig)

Properties

private
injections: IInjections
optional
lastContext: IContext | IErrorContext | null
optional
lastError: string | Error
optional
lastRoute: IRoute | null

Methods

sendByArguments(
method: string,
uri: string | URL,
data?: any,
)

shorthand function

sendByRequest(request: IRequest, url?: URL)

request send method

Static Properties

readonly
HOST: string