相关疑难解决方法(0)

柴的断言,期待和应该有什么区别?

有什么区别assert,expectshould什么时候使用什么?

assert.equal(3, '3', '== coerces values to strings');

var foo = 'bar';

expect(foo).to.equal('bar');

foo.should.equal('bar');
Run Code Online (Sandbox Code Playgroud)

javascript mocha.js chai

147
推荐指数
2
解决办法
4万
查看次数

标签 统计

chai ×1

javascript ×1

mocha.js ×1