visionmedia/superagent — pull request #417 by buildmaster (2014-07-10 03:48:11+00:00)
Title: cope with nock not allowing connection

I don't know if this is worth putting in or not but if you disable net connect using nock (which replaces standard functions and throws an error on attempting non-mocked calls) and try and do a request with a query string you should get back a NetConnectNotAllowedError but instead you get a TypeError due to req.path not existing.

This is the simplest test case I can think of but requires a devDependency on nock.js so I don't know if it'll be allowed...