Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/dev_deps.ts>assertSpyCall

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function assertSpyCall
import { assertSpyCall } from "https://deno.land/x/cliffy@v1.0.0-rc.4/dev_deps.ts";

Asserts that a spy is called as expected.

Type Parameters

Self
Args extends unknown[]
Return

Parameters

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