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

x/merlin/deps.ts>asserts.assertObjectMatch

Testing and Benchmarking framework for deno 🧙‍♂️
Latest
function asserts.assertObjectMatch
import { asserts } from "https://deno.land/x/merlin@v1.0.7/deps.ts";
const { assertObjectMatch } = asserts;

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>