Closed rhythmicdevil closed 11 years ago
Don't know if it is actual or not, but include
expect work (but imho i would expect as you) on exact object to compare by keys and values:
query.obj.should.include(q_obj); //this works
I will close it for now. Open new if you have questions/problems about include or other things in should.js.
Hi, I am having some problems with the correct way to assert the value of an object. The method (increment) that I am testing returns an object like this:
My test method looks like this:
This always fails with the following message:
If I leave off the line:
it passes. It looks to me like the object should pass the assertion.
What I want to do is assert that the returned object for 'query' is of that form described in 'q_obj'. Can you point me the right direction?
Thanks Steve