[英]Issue with mocha tests with should.js
I have the following code (mocha test with should.js
): 我有以下代码(带有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
. 它通过了,尽管结果是一个object
。 It also with passes result.should.be.object
. 它还带有通行result.should.be.object
。
查看文档 ,您可能需要在该行上大写object
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.