New issue
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
question mark is ignored when it's used in get uri #2182
Comments
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions. |
closing in favor of #2234 |
I'm having issue using nock with an endpoint that has a question mark ex:
nock(USER_SERVICE_URL) .get('/user?type=person') .reply(200, REMOTE_PERSONS_MOCK);
when checking
nock.pendingMocks()
I gethttp://user-service/user
I also tried using nock like this but it didn't help
nock(USER_SERVICE_URL) .get('/user') .query({type: 'person'}) .reply(200, REMOTE_PERSONS_MOCK);
The text was updated successfully, but these errors were encountered: