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

x/hex/src/lib/stdx/mod.ts>testing.mock.ExpectedSpyCall

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface testing.mock.ExpectedSpyCall
import { type testing } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/mod.ts";
const { ExpectedSpyCall } = testing.mock;

Call information recorded by a spy.

Type Parameters

optional
Self = any
optional
Args extends unknown[] = any[]
optional
Return = any

Properties

optional
args: [...Args, ...unknown[]]

Arguments passed to a function when called.

optional
self: Self

The instance that a method was called on.

optional
returned: Return

The value that was returned by a function. If you expect a promise to reject, expect error instead.

optional
error: { Class?: new (...args: any[]) => Error; msgIncludes?: string; }