diff --git a/assert/object_match.ts b/assert/object_match.ts index 67990dfa2..2f26b1a7e 100644 --- a/assert/object_match.ts +++ b/assert/object_match.ts @@ -12,6 +12,8 @@ import { assertEquals } from "./equals.ts"; * * 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