We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nock('http://example.test').get('/somepath').reply(200, 'hey') // taken from this repo test code nock.removeInterceptor({hostname: 'example.test', path: '/somepath'}) true n=nock('http://example.test:8043').get('/somepath').reply(200, 'hey') // added port nock.removeInterceptor({hostname: 'example.test', path: '/somepath'}) false nock.removeInterceptor({hostname: 'example.test:8043', path: '/somepath'}) false
Am I doing anything wrong? If not, can it be fixed?
The text was updated successfully, but these errors were encountered:
nock/lib/common.js
Line 21 in 3efd738
I guess that's intended as a host name is something without port.
Meanwhile I proposed more flexible way for removing interceptors. see #2141
Sorry, something went wrong.
I'll close the issue as the original question has been answered. I'll get back to your PR @pillsilly
No branches or pull requests
Am I doing anything wrong? If not, can it be fixed?
The text was updated successfully, but these errors were encountered: