lundi 24 juin 2019

How to mock a connection using nock library?

I have application code that verifies response.connection.remoteAddress isn't a local IP, but when using nock response.connection is just an EventEmitter instance with no remoteAddress property. How do I modify response that nock creates?

Aucun commentaire:

Enregistrer un commentaire