Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface IMethodChanger
import { type IMethodChanger } from "https://deno.land/x/rhum@v2.1.0/src/interfaces.ts";

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.