0
如果我一次測試路線,測試運行順利。 如果我嘗試兩次測試相同的路線,它失敗說:如何使用chakram js多次測試相同的路由?
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
我一直試圖讓它現在工作了幾個小時。 並沒有在文檔中找到任何內容。
describe('Post validation mail', function() {
it ('Should not validate account', function() {
return chakram.post(home + '/user/valid/toto', {email: 'toto.com'})
.then(function (r) {
expect(r.body.message).to.not.equal('Validation successful')
})
})
})
describe('Post validation mail', function() {
it ('Should not validate account', function() {
return chakram.post(home + '/user/valid/toto', {email: 'toto.com'})
.then(function (r) {
expect(r.body.message).to.not.equal('Validation successful')
})
})
})