Skip to main content
Module

x/rhum/mod.ts>Interfaces.IMock

A test double library
Go to Latest
interface Interfaces.IMock
import { type Interfaces } from "https://deno.land/x/rhum@v2.1.0-rc.1/mod.ts";
const { IMock } = Interfaces;

Type Parameters

OriginalObject

Properties

calls: MockMethodCalls<OriginalObject>

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.