Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dectyl/mod.ts>testing.assertRequest

Prototype library for testing Deno Deploy scripts using the Deno CLI
Go to Latest
function testing.assertRequest
import { testing } from "https://deno.land/x/dectyl@0.10.3/mod.ts";
const { assertRequest } = testing;

Asserts a request is effectively equal to the expected information. The options can be used to control the behavior of the comparison.

Parameters

actual: Request
expected: Request | string | RequestInit
optional
options: AssertRequestOptions = [UNSUPPORTED]

Returns

Promise<void>