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

x/rhum/src/interfaces.ts>IMock

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

Type Parameters

OriginalObject

Properties

Property to track method calls.

is_mock: boolean

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

Methods

Access the method expectation creator to create an expectation for the given method.

Access the method pre-programmer to change the behavior of the given method.

verifyExpectations(): void

Verify that all expectations from the .expects() calls.