You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nock.pendingMocks() returns number of mocks per scope squared. For example, if you use scope.get().reply() 3 times, you'll get 9 entries.
nock.removeInterceptor doesn't work. If you call scope.get().reply() twice, pendingMocks will show 4 entries. After calling removeInterceptor, there will only be 2 entries, so something gets removed. However, scope.done() will still throw an exception that the mock is not satisfied
When logging out the value of allInterceptors, there appears to be a lot of duplication of mocks and a lot of circular references.
The text was updated successfully, but these errors were encountered:
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.
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!
lockbot
locked as resolved and limited conversation to collaborators
Oct 8, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version 8.0.0
Here's some sample code that demonstrates the issue:
If you run that code, you'll find:
nock.pendingMocks()
returns number of mocks per scope squared. For example, if you usescope.get().reply()
3 times, you'll get 9 entries.nock.removeInterceptor
doesn't work. If you callscope.get().reply()
twice,pendingMocks
will show 4 entries. After callingremoveInterceptor
, there will only be 2 entries, so something gets removed. However,scope.done()
will still throw an exception that the mock is not satisfiedWhen logging out the value of
allInterceptors
, there appears to be a lot of duplication of mocks and a lot of circular references.The text was updated successfully, but these errors were encountered: