Skip to main content
Go to Latest
interface Interfaces.IMethodChanger
import { type Interfaces } from "https://deno.land/x/rhum@v2.1.0-rc.1/mod.ts";
const { IMethodChanger } = Interfaces;

Methods

willReturn<T>(returnValue: T): void

Make the given method return the given returnValue.

willThrow<T>(error: IError & T): void

Make the given method throw the given error.