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

x/pup/test/deps.ts>assertSpyCall

Universal process manager built in Deno
Go to Latest
function assertSpyCall
import { assertSpyCall } from "https://deno.land/x/pup@1.0.0-beta.18/test/deps.ts";

Asserts that a spy is called as expected.

Type Parameters

Self
Args extends unknown[]
Return

Parameters

spy: Spy<Self, Args, Return>
callIndex: number
optional
expected: ExpectedSpyCall<Self, Args, Return>