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

x/oauth2_server/test_deps.ts>assertObjectMatch

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

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

Parameters

actual: Record<PropertyKey, any>
expected: Record<PropertyKey, unknown>