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

x/oauth2_server/test_deps.ts

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

Classes

Overrides the real Date object and timer functions with fake ones that can be controlled through the fake time instance.

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that error is an Error. If not then an error will be thrown. An error class and a string that should be included in the error message can also be asserted.

Make an assertion that actual and expected are not equal, deeply. If not then throw.

Make an assertion that actual object is a subset of expected object, deeply. If not, then throw.

Executes a function which returns a promise, expecting it to throw or reject. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

Asserts that a spy is called as expected.

Asserts that an async spy is called as expected.

Asserts that a spy is called as much as expected and no more.

Make an assertion that actual and expected are strictly equal. If not then throw.

Executes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

Registers a test suite.

Registers an individual test case.

Wraps a function or instance method with a Spy.

Replaces an instance method with a Stub.

f
v4.generate
deprecated

Validate that the passed UUID is an RFC4122 v4 UUID.

Interfaces

Registers a test suite.

Registers an individual test case.

A function or instance method wrapper that records all calls made to it.

An instance method replacement that records all calls made to it.