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

x/rhum/src/interfaces.ts>IVerifier

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

Base interface for verifiers.

Methods

toBeCalled(expectedCalls?: number): this

Verify that calls were made.

toBeCalledWithArgs(requiredArg: unknown, ...restOfArgs: unknown[]): this

Verify that the given args were used. Takes a rest parameter of args to use during verification. At least one arg is required to use this method, which is the requiredArg param.

toBeCalledWithoutArgs(): this

Verify that no args were used.