Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@andywer andywer released this 12 Jan 10:51
fd0e525

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.