mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
docs(assert): add additional example in assertObjectMatch docs (#5703)
This commit is contained in:
parent
1bc290b1ac
commit
cb3dd2baa5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user