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