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

docs(README.md) - fix info about mocking #958

Closed
wants to merge 1 commit into from
Closed

docs(README.md) - fix info about mocking #958

wants to merge 1 commit into from

Conversation

akaguny
Copy link
Contributor

@akaguny akaguny commented Aug 22, 2017

fix info about mocking requests more then 1

fix info about mocking requests more then 1
@coveralls
Copy link

coveralls commented Aug 22, 2017

Coverage Status

Coverage decreased (-0.8%) to 91.823% when pulling 94e6a71 on akaguny:master into 8da9ee0 on node-nock:master.

@sharikovvladislav
Copy link

You added one line to the readme file and coverage level decreased. Probably there is a way to ignore README.md when collection coverage :)

@sharikovvladislav
Copy link

I don't know how to do it. For example: https://github.com/expressjs/express/blob/master/package.json#L93 lodash collects coverage with istanbul and then send that results to coveralls.

Actually, there is source_files option in coveralls docs: https://coveralls.zendesk.com/hc/en-us/articles/201350799-API-Reference

@@ -135,6 +135,7 @@ Then the test can call the module, and the module will do the HTTP requests.
When you setup an interceptor for a URL and that interceptor is used, it is removed from the interceptor list.
This means that you can intercept 2 or more calls to the same URL and return different things on each of them.
It also means that you must setup one interceptor for each request you are going to have, otherwise nock will throw an error because that URL was not present in the interceptor list.
But if you whant use .persist() and then nock will always intercept the requests, read more in * [.persist()](#persist)
Copy link
Member

Choose a reason for hiding this comment

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

Could you rephrase the sentence to

If you don’t want interceptors to be removed as they are used, you can use the .persist() method.

Or add me as collaborator to your fork and I can fix it up for you :)

@akaguny
Copy link
Contributor Author

akaguny commented Sep 19, 2017

close and create #971

@gr2m
Copy link
Member

gr2m commented Sep 19, 2017

fixed via #971

@gr2m gr2m closed this Sep 19, 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.

None yet

4 participants