【发布时间】:2021-06-29 09:42:16
【问题描述】:
如何使用 mocha/chai 测试函数调用是否带有 2 个参数?
describe('EncryptCode Test', () => {
it('EncryptCode function return a string', () => {
expect(EncryptCode.Encrypt('fArgs','sArgs')).to.be.an('string');
});
it('EncryptCode function call with 2 arguments', () => {
???????????
});
});
【问题讨论】:
标签: node.js reactjs mocha.js chai