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

x/dectyl/lib/testing.ts>mockChromeRequest

Prototype library for testing Deno Deploy scripts using the Deno CLI
Go to Latest
function mockChromeRequest
import { mockChromeRequest } from "https://deno.land/x/dectyl@0.10.5/lib/testing.ts";

Return a request init that mocks what a Chromium request would look like from a client.

Parameters

optional
referrer: string

Optionally set the referrer header in the request init