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.
Aucun commentaire:
Enregistrer un commentaire