Make an assertion that actual object is a subset of expected object, deeply. If not, then throw.
actual
expected
Optional
24.7.0
import { assertObjectMatch } from "assert";assertObjectMatch({ foo: "bar" }, { foo: "bar" }); // Doesn't throwassertObjectMatch({ foo: "bar" }, { foo: "baz" }); // Throws Copy
import { assertObjectMatch } from "assert";assertObjectMatch({ foo: "bar" }, { foo: "bar" }); // Doesn't throwassertObjectMatch({ foo: "bar" }, { foo: "baz" }); // Throws
Make an assertion that
actual
object is a subset ofexpected
object, deeply. If not, then throw.