Releases: andywer/deep-assert
Releases · andywer/deep-assert
v0.3.0
Adds the allowAdditionalProps option, thanks to @segphault.
Example
assert.deepEquals(
{foo: {bar: "baz", extra: true}, extra: true},
{foo: {bar: "baz"}},
{allowAdditionalProps: true}
)Before that option you would have had to add ...any() to the expectation object and its child object(s).
See #1 for details.
v0.2.0
v0.1.0 - Initial release
Comes with all the basics:
deepEquals()any()satisfies()- user-friendly diffs in the error message