From ce87311fbb566c19e04c11ac88b4874a6742ac90 Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Wed, 20 Jul 2016 16:15:26 -0300 Subject: [PATCH 1/2] Add note about restoring the fs (See istanbuljs/nyc#324) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index e46a5fb9..0f6383f4 100644 --- a/readme.md +++ b/readme.md @@ -19,7 +19,7 @@ mock({ }); ``` -When you are ready to restore the `fs` module (so that it is backed by your real file system), call [`mock.restore()`](#mockrestore). +When you are ready to restore the `fs` module (so that it is backed by your real file system), call [`mock.restore()`](#mockrestore). Note that calling this maybe **mandatory** in some cases. See [istanbuljs/nyc#324](https://github.com/istanbuljs/nyc/issues/324#issuecomment-234018654) ```js // after a test runs From 3ab4c5f434bdc9c55c8a69d8d453e35c89280a04 Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Wed, 20 Jul 2016 16:51:28 -0300 Subject: [PATCH 2/2] Fix typo --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 0f6383f4..9646e55e 100644 --- a/readme.md +++ b/readme.md @@ -19,7 +19,7 @@ mock({ }); ``` -When you are ready to restore the `fs` module (so that it is backed by your real file system), call [`mock.restore()`](#mockrestore). Note that calling this maybe **mandatory** in some cases. See [istanbuljs/nyc#324](https://github.com/istanbuljs/nyc/issues/324#issuecomment-234018654) +When you are ready to restore the `fs` module (so that it is backed by your real file system), call [`mock.restore()`](#mockrestore). Note that calling this may be **mandatory** in some cases. See [istanbuljs/nyc#324](https://github.com/istanbuljs/nyc/issues/324#issuecomment-234018654) ```js // after a test runs