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

x/rhum/src/interfaces.ts>ISpy

A test double library
Go to Latest
interface ISpy
import { type ISpy } from "https://deno.land/x/rhum@v2.1.0-rc.1/src/interfaces.ts";

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.