Skip to main content
Module

x/test_suite/test_deps.ts>assertObjectMatch

An extension of Deno's built-in test runner to add setup/teardown hooks and make it easier to organize tests in a format similar to Jasmine, Jest, and Mocha.
Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/x/test_suite@0.16.1/test_deps.ts";

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>