Closed mshick closed 10 years ago
Ugh, sorry, new to mocha. I just realized this seems to be a side-effect of logging in the testing environment.
@mshick I'm having the same problem with mocha, what is the recommended fix / workaround? I don't seem to be able to use expect(obj).to.eql(model)
, since it's showing the boolean as {}
I've been working on a test for my PR and noticed that Booleans are not working as expected. Working with the datatype.test.js, I see that the
testFind()
andtestAll()
functions are returning models with prop 'bool' = {}. Checking typeof(m.bool) yields "object".Strangely, the mocha test is not catching this, even though I am capable of making mocha trigger an error with, for instance
---> AssertionError: expected {} to be a boolean
But this isn't triggering an error as I'd expect: