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

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

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

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; }