Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method MethodVerifier.prototype.toBeCalledWithoutArgs
import { MethodVerifier } from "https://deno.land/x/rhum@v2.1.0-rc.1/src/verifiers/method_verifier.ts";

Verify that this method was called without args.

Parameters

actualArgs: unknown[]
  • The actual args that this method was called with. This method expects it to be an empty array.
optional
codeThatThrew: string
  • (Optional) A custom display of code that throws.

Returns

this

this To allow method chaining.