Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface IMethodChanger
import { type IMethodChanger } from "https://deno.land/x/rhum@v2.1.0-rc.1/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.