method MockResponse.prototype.text
MockResponse.prototype.text(_body: string): HandlerResult

Sends a plain-text response.

Parameters

_body: string

Return Type

HandlerResult

The handler result

Usage

import { MockResponse } from "testing/src/index.ts";