Skip to content

Commit

Permalink
docs(README): document nock.recorder.clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 18, 2017
1 parent 8da9ee0 commit 1433789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -1077,7 +1077,7 @@ var nockCalls = nock.recorder.play();

The `nockCalls` var will contain an array of strings representing the generated code you need.

Copy and paste that code into your tests, customize at will, and you're done!
Copy and paste that code into your tests, customize at will, and you're done! You can call `nock.recorder.reset()` to remove already recorded calls from the array that `nock.recorder.play()` returns.

(Remember that you should do this one test at a time).

Expand Down

0 comments on commit 1433789

Please sign in to comment.