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

x/router/vendor/https/deno.land/std/testing/asserts.ts>assertObjectMatch

A high-performance basic router works anywhere.
Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/x/router@v2.0.1/vendor/https/deno.land/std/testing/asserts.ts";

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

Parameters

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