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

x/molt/lib/std/testing.ts>assertSpyCalls

Update dependencies the Deno way
Latest
function assertSpyCalls
import { assertSpyCalls } from "https://deno.land/x/molt@0.17.2/lib/std/testing.ts";

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

Type Parameters

Self
Args extends unknown[]
Return

Parameters

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