Skip to main content
Module

x/cliffy/dev_deps.ts>assertSpyCalls

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

Asserts that a spy is called as much as expected and no more.

Type Parameters

Self
Args extends unknown[]
Return

Parameters

spy: Spy<Self, Args, Return>
expectedCalls: number