Skip to content
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

respect user-provided multiple regexes for allowUnmocked and match #965

Closed
wants to merge 1 commit into from
Closed

respect user-provided multiple regexes for allowUnmocked and match #965

wants to merge 1 commit into from

Conversation

cmswalker
Copy link
Contributor

Fixes #835

This was an issue for me as I'm hardly using hardcoded strings due to dynamic hosts and urls, so regex matching is preferable.

Happy to write regression tests for this if it is expected behavior. (Looking at the docs, myself and others seem to think this should work out of the box)

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove the package-lock.json and the other package.json changes? I’ve run into this myself but want to address it in a separate PR

Could you add the test case from #835 in a separate commit and then your fix in another. That makes it easier for us to review, as we see that the test actually failed and that your changes fixed it. Please add (#835) to the test title

test('match path using regexp with allowUnmocked (#835)', function (t) {
...

@nock nock deleted a comment from coveralls Sep 19, 2017
@nock nock deleted a comment from coveralls Sep 19, 2017
@nock nock deleted a comment from coveralls Sep 19, 2017
@cmswalker
Copy link
Contributor Author

Will do asap

@cmswalker
Copy link
Contributor Author

@gr2m please see new PR #973

@gr2m
Copy link
Member

gr2m commented Sep 20, 2017

done via #973

@gr2m gr2m closed this Sep 20, 2017
@lock
Copy link

lock bot commented Sep 13, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants