Commit db0fa897 by Ben Drucker

Properly clean up nock state after tests

parent 16c51c93
...@@ -71,7 +71,7 @@ describe('ClearbitClient', function () { ...@@ -71,7 +71,7 @@ describe('ClearbitClient', function () {
before(function () { before(function () {
mock = nock('https://person.clearbit.co'); mock = nock('https://person.clearbit.co');
}); });
after(nock.restore); after(nock.cleanAll);
afterEach(function () { afterEach(function () {
mock.done(); mock.done();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment