Skip to main content
Module

x/rhum/mod.ts>Interfaces.ISpy

A test double library
Latest
interface Interfaces.ISpy
import { type Interfaces } from "https://deno.land/x/rhum@v2.2.0/mod.ts";
const { ISpy } = Interfaces;

Type Parameters

OriginalObject

Properties

is_spy: boolean

Helper property to see that this is a spy object and not the original.

stubbed_methods: Record<MethodOf<OriginalObject>, ISpyStubMethod>

Property to track all stubbed methods. This property is used when calling .verify("someMethod"). The .verify("someMethod") call will return the ISpyStubMethod object via stubbed_methods["someMethod"].

Methods

Access the method verifier.