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

x/denoexec/deps.ts>testing.assertObjectMatch

A higher level wrapper around https://doc.deno.land/builtin/stable#Deno.run
Latest
function testing.assertObjectMatch
import { testing } from "https://deno.land/x/denoexec@v1.1.5/deps.ts";
const { assertObjectMatch } = testing;

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>