Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/std/testing/mock.ts>returnsThis

Deno-powered framework for building business web apps
Go to Latest
function returnsThis
import { returnsThis } from "https://deno.land/x/netzo@0.3.91/deps/std/testing/mock.ts";

Creates a function that returns the instance the method was called on.

Type Parameters

optional
Self = any
optional
Args extends unknown[] = any[]

Returns

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