Exercise Tracker Question

I am having trouble setting up my testing for this project.

Without adding this line of code in package.json:

“–timeout 10000” to “test”: "mocha "

I get this error:

“Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure “done()” is called; if returning a Promise, ensure it resolves. (/home/kb/Programming/fccExerciseTrackerChallenge/test/server.test.js)”

Blockquotedescribe(‘POST NEW username’,()=>{
it(‘POST NEW response should be a an object with username and _id properties and status 200’,(done) =>{
let newUserPost = {
username: ‘id’ + (new Date()).getTime()
}
chai.request(server)
.post(’/api/exercise/new-user’)
.send(newUserPost)
.end((err,res)=>{
expect(res).to.have.status(200);
// expect(res).to.be.an(‘object’);
// expect(res.body).that.includes.keys(’_id’,‘username’);
// expect(res.body.username).to.equals(newUserPost.username);
done();
});
});
});

Here’s my github page code

Works for me: