std/testing/mock.ts

Deno standard library
Go to Latest
interface ExpectedSpyCall
import { type ExpectedSpyCall } from "https://deno.land/std@0.145.0/testing/mock.ts?s=ExpectedSpyCall";

Call information recorded by a spy.

Type Parameters

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

Properties

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

Arguments passed to a function when called.

optional
self: Self
[src]

The instance that a method was called on.

optional
returned: Return
[src]

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; }
[src]