std/testing/mock.ts

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

Call information recorded by a spy.

Type Parameters

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

Properties

args: Args[src]

Arguments passed to a function when called.

optional
returned: Return
[src]

The value that was returned by a function.

optional
error: Error
[src]

The error value that was thrown by a function.

optional
self: Self
[src]

The instance that a method was called on.