you need to use a library to make HTTP requests. Popular choices include axios, node-fetch, or the built-in https module in Node.js. You also need to handle the asynchronous nature of these requests in your Mocha test.
If you need Code Example how to do this, Let me know and i will provide corrected script