fastcodejava
fastcodejava

Reputation: 41077

Issue with mocha tests with should.js

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

Answers (1)

Yaniv
Yaniv

Reputation: 391

Looking at the documentation, you probably need to capitalize object on that line.

Upvotes: 3

Related Questions