Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/di/tests/deps.ts>mock.assertSpyCallAsync

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function mock.assertSpyCallAsync
import { mock } from "https://deno.land/x/hex@0.5.15/src/di/tests/deps.ts";
const { assertSpyCallAsync } = mock;

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>