Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/testing.ts>asserts.assertObjectMatch

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function asserts.assertObjectMatch
import { asserts } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/testing.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, any>
expected: Record<PropertyKey, unknown>