Skip to main content
Module

x/dectyl/mod.ts>testing.AssertRequestOptions

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

Properties

optional
ignoreBody: boolean

Ignore comparing the body. This defaults to false.

optional
ignoreHeaders: boolean | string[]

Ignore comparing the headers. If an array of strings are provided, those specific keys will not be checked (and the length of the entries in the headers won't be compared). Ignored need should be normalized to a header key, which is lowercase. This defaults to false.

optional
ignoreMethod: boolean

Ignore the method. This defaults to false.

optional
ignoreUrl: boolean

Ignore the url. This defaults to false.

optional
requestInit: RequestInit

If the expected is a Request or string then a RequestInit can be provided in the options to create a new Request that will be used for comparison.