我想測試渲染形式的反應組件上的點擊,但它失敗,出現以下錯誤 AssertionError: expected [Function: proxy] to have a property 'callCount' of 1, but got 0 這裏第三次測試是我寫的測試: form.test.js describe('<Form />',() => {
it('renders without
我正在寫與chai.request一個通用的測試功能,這裏是我有: //this is in some function
var file = fs.readFileSync(__dirname + '/../test/files/' + args.fileName);
chai.request(server)
.post('/v2')
.field
我正在編寫一個單元測試來測試我的postgres模式。我使用node-pg,mocha,sinon和chai。 這工作 - 測試通過沒有問題: describe('When adding a user',()=> {
it('should reject since email is used somewhere else', (done)=> {
pool.query(`INS