Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/testing.ts>mock.assertSpyCallAsync

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function mock.assertSpyCallAsync
import { mock } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/testing.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>