Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ewald <johannes.ewald@peerigon.com>2014-07-08 04:48:17 +0400
committerJohannes Ewald <johannes.ewald@peerigon.com>2014-07-08 04:48:17 +0400
commita04a8eed1213dcb0a8f3527db878c3b1fb3e51fc (patch)
tree3ea7093e0fa2289cfa7fe8d49228cb5405ee793f /README.md
parentcdc24b0629d2d15ee6410cb9b3b7417b666625f9 (diff)
Add line-breaks to caveats
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8150ec6..077e754 100644
--- a/README.md
+++ b/README.md
@@ -108,7 +108,7 @@ myModule.__set__({
### Caveats
-**Difference to require()**
+**Difference to require()**<br>
Every call of rewire() executes the module again and returns a fresh instance.
```javascript
@@ -117,7 +117,7 @@ rewire("./myModule.js") === rewire("./myModule.js"); // = false
This can especially be a problem if the module is not idempotent [like mongoose models](https://github.com/jhnns/rewire/issues/27).
-**Changing globals**
+**Changing globals**<br>
Be careful, if you do something like this you'll change your global console instance.
```javascript