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

Terminal HTML response — mirrors the kernel builder's html(), so a test asserting on the double cannot pass where the real builder would fail.

Parameters

_body: string

The HTML document text

Return Type

HandlerResult

The handler result brand

Usage

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