std/testing/mock.ts

Deno standard library
Go to Latest
function assertSpyCallArg
import { assertSpyCallArg } from "https://deno.land/std@0.146.0/testing/mock.ts?s=assertSpyCallArg";

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

Type Parameters

Self[src]
Args extends unknown[][src]
Return[src]
ExpectedArg[src]

Parameters

spy: Spy<Self, Args, Return>[src]
callIndex: number[src]
argIndex: number[src]
expected: ExpectedArg[src]

Returns

ExpectedArg[src]