Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.3/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