it('GET /customers/ with wrong id', (done) => {
request
.get(`/customers/${wrongId}`)
.end((err, res) => {
expect(res.body).to.equals({});
expect(res).to.have.status(404);
done();
});
});
1)客户CRUD GET / customers / id id错误:
Uncaught AssertionError: expected {} to equal {}
+ expected - actual