Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/testing.ts>mock.returnsArgs

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function mock.returnsArgs
import { mock } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/testing.ts";
const { returnsArgs } = mock;

Creates a function that returns its arguments or a subset of them. If end is specified, it will return arguments up to but not including the end.

Type Parameters

Args extends unknown[]
optional
Self = any

Parameters

optional
start = [UNSUPPORTED]
optional
end: number

Returns

(this: Self, ...args: Args) => Args