unexpectedjs / unexpected

Unexpected - the extensible BDD assertion toolkit

Home Page:http://unexpected.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lacking diff w. 'to exhaustively satisfy' w. missing key

msiebuhr opened this issue · comments

After #370 got fixed:

var expect = require("./lib");
expect({}, "to exhaustively satisfy", {foo: expect.it("to be undefined")})

...

UnexpectedError:
expected {} to exhaustively satisfy { foo: expect.it('to be undefined') }

{
  foo:
}

The latter should be something along

{
  // missing key 'foo'
}

Nice catch!

Fix released in 10.26.3. Thanks for reporting!