I'm learning to write test cases using mocha and chai for the node application,I had written the below test case
let chai = require('chai');
let chaiHttp = require('chai-http');
const should = chai.should;
const expect = chai.expect;
const server = "http:\\localhost:3000"
chai.use(chaiHttp);
describe('Create Login and Register', () => {
it('should login using credentials', () => {
chai.request(server)
.get('/register')
.send()
.then((res: any) => {
res.should.have.status(200);
done();
}).catch((err: any) => { done(err) })
})
})
but it shows the read swiggle below the done(); function

do i need to add some types for it to get working what is that i'm missing ,i tried to install chai-http again but still same issue
doneis passed in as the first argument to your test function.Although, because you are using a
Promisechain, you should just return the chain instead.