Skip to main content
Module

x/cargo_inspect/schemas/deps_tests.ts>assertObjectMatch

Cargo! Battery included web / http / application framework
Go to Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/x/cargo_inspect@0.1.43/schemas/deps_tests.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>