std/testing/asserts.ts

Deno standard library
Go to Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/std@0.102.0/testing/asserts.ts?s=assertObjectMatch";

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

Parameters

actual: Record<PropertyKey, any>[src]
expected: Record<PropertyKey, unknown>[src]