Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/test_deps.ts>stub

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
function stub
import { stub } from "https://deno.land/x/oauth2_server@0.12.0/test_deps.ts";

Replaces an instance method with a Stub.

Type Parameters

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

Parameters

self: Self
property: keyof Self

Type Parameters

Self
Args extends unknown[]
Return

Parameters

self: Self
property: keyof Self
func: (this: Self, ...args: Args) => Return