所以我的新手在nodejs里用摩卡-chai的东西。我不明白为什么我不能在运行mochajs时获得响应状态。.end(function(err, res){ expect(res.status).to.equal/v1/clinic/<id> PUT');
it('should delete a SINGLE clinic on /api/v
我正在对expect()应用toBeA()方法,它给出了错误TypeError:无法读取未定义的属性'toBeA‘,如何通过链接应用这些方法。expect(res).toBe(55).toBeA('number'); ----> here it gives the above error.
it('Object should be equal',() => {
expect