Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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-rc.1/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.