Comparing version 0.17.5 to 0.18.0
@@ -329,2 +329,3 @@ var path = require('path') | ||
, shouldPersist: shouldPersist | ||
, pendingMocks: pendingMocks | ||
}; | ||
@@ -331,0 +332,0 @@ |
{ "name" : "nock" | ||
, "description" : "HTTP Server mocking for Node.js" | ||
, "tags" : ["Mock", "HTTP", "testing", "isolation"] | ||
, "version" : "0.17.5" | ||
, "version" : "0.18.0" | ||
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "contributors" : |
@@ -289,2 +289,12 @@ # Nock [](http://travis-ci.org/flatiron/nock) | ||
## pendingMocks | ||
If a scope is not done, you can inspect the scope to infer which ones are still pending using the `scope.pendingMocks` property: | ||
```js | ||
if (!scope.isDone()) { | ||
console.error('pending mocks: %j', scope.pendingMocks); | ||
} | ||
``` | ||
# Logging | ||
@@ -291,0 +301,0 @@ |
76983
2285
383