Reputation: 41077
I have the following code (mocha test with should.js
):
it('must not be valid with empty object', function (done) {
var result = {};
result.should.not.be.object;
});
It passes, although result is an object
. It also with passes result.should.be.object
.
Upvotes: 0
Views: 46
Reputation: 391
Looking at the documentation, you probably need to capitalize object
on that line.
Upvotes: 3