/** * Make an assertion that `expected` object is a subset of `actual` object, * deeply. If not, then throw a diff of the objects, with mismatching * properties highlighted. * * @example Usage * ```ts ignore * import { assertObjectMatch } from "@std/assert"; * * assertObjectMatch({ foo: "bar" }, { foo: "bar" }); // Doesn't throw * assertObjectMatch({ foo: "bar" }, { foo: "baz" }); // Throws * assertObjectMatch({ foo: 1, bar: 2 }, { foo: 1 }); // Doesn't throw * assertObjectMatch({ foo: 1 }, { foo: 1, bar: 2 }); // Throws * ``` * * @example Usage with nested objects * ```ts ignore * import { assertObjectMatch } from "@std/assert"; * * assertObjectMatch({ foo: { bar: 3, baz: 4 } }, { foo: { bar: 3 } }); // Doesn't throw * assertObjectMatch({ foo: { bar: 3 } }, { foo: { bar: 3, baz: 4 } }); // Throws * ``` * * @param actual The actual value to be matched. * @param expected The expected value to match. * @param msg The optional message to display if the assertion fails. */ export declare function assertObjectMatch(actual: Record, expected: Record, msg?: string): void; //# sourceMappingURL=object_match.d.ts.map