我有以下代码(should.js的mocha测试):
it('must not be valid with empty object', function (done) {
var result = {};
result.should.not.be.object;
});它通过了,尽管result是一个object。它还通过了result.should.be.object。
发布于 2015-04-25 06:54:34
看一下documentation,您可能需要在这一行上大写object。
https://stackoverflow.com/questions/29858731
复制相似问题