I have an async javascript function and I am testing it using mocha and chai. Here is the test code:
it("should throw an error for an invalid URL", async () => {
await seeLink("abc.c").catch((err) => {
expect(err).to.be.an("error");
});
});
The test passes but is not exiting and ending the process. Can someone help?