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

x/netzo/deps/std/testing/mock.ts>assertSpyCallAsync

Deno-powered framework for building business web apps
Go to Latest
function assertSpyCallAsync
import { assertSpyCallAsync } from "https://deno.land/x/netzo@0.3.91/deps/std/testing/mock.ts";

Asserts that an async spy is called as expected.

Type Parameters

Self
Args extends unknown[]
Return

Parameters

spy: Spy<Self, Args, Promise<Return>>
callIndex: number
optional
expected: ExpectedSpyCall<Self, Args, Promise<Return> | Return>