Skip to main content
Module

x/rhum/mod.ts>Interfaces.IVerifier

A test double library
Latest
interface Interfaces.IVerifier
import { type Interfaces } from "https://deno.land/x/rhum@v2.2.0/mod.ts";
const { IVerifier } = Interfaces;

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.