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

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

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

Asserts that a spy is called with a specific arg as expected.

Type Parameters

Self
Args extends unknown[]
Return
ExpectedArg

Parameters

spy: SpyLike<Self, Args, Return>
callIndex: number
argIndex: number
expected: ExpectedArg