tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 195 forks source link

NaN is shown as empty object in message #106

Closed faridnsh closed 11 years ago

faridnsh commented 11 years ago
> (NaN).should.be.equal(8)
AssertionError: expected {} to equal 8
btd commented 11 years ago

It is fixed in master:

> (NaN).should.be.equal(8)
AssertionError: expected NaN to equal 8