I'm using Mocha and supertest to do some simple testing in my NodeJS server. I now want to test this scenario:
- Using my application in superset I make a request
- The response contains a URL in it
- I need to now test this URL is correct (via HTTP)
The URL will be the same server as running in superset. So if I first call .get('/some-data')
the resulting URL will be fully qualified like http://localhost:3456/a-path
.
I'm not clear how I could set this up, or if it is even possible using these tools.