【发布时间】:2021-06-14 22:30:20
【问题描述】:
describe('Notifications API', ()=>{
/*Getting All Notification*/
describe('getNotifications', ()=>{
it('it should GET all the notifications', async () => {
const result = await chai.request(app).get('/getNotifications');
result.should.have.status(200);
});
});
})
【问题讨论】:
-
我收到此错误消息“错误:超过 2000 毫秒的超时。对于异步测试和挂钩,请确保调用了“done()”;如果返回 Promise,请确保它解决了)"
标签: node.js asynchronous mocha.js chai