File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ case CoffeeScript needs to be listed in your devDependencies.
2222
2323If you want to use rewire also on the client-side take a look at [ client-side bundlers] ( https://github.com/jhnns/rewire#client-side-bundlers )
2424
25- [ ![ npm status] ( https://nodei.co/npm/rewire.svg?downloads=true&stars=true )] ( https://npmjs.org/package/rewire )
25+ [ ![ npm status] ( https://nodei.co/npm/rewire.svg?downloads=true&stars=true&downloadRank=true )] ( https://npmjs.org/package/rewire )
2626
2727<br />
2828
@@ -106,7 +106,7 @@ var revert = myModule.__set__("port", 3000);
106106
107107// port is now 3000
108108revert ();
109- // port is now the previous value
109+ // port is now the previous value
110110```
111111
112112For your convenience you can also use the ` __with__ ` method which reverts the given changes after it finished.
@@ -138,7 +138,7 @@ myModule.__with__({
138138** Difference to require()** <br >
139139Every call of rewire() executes the module again and returns a fresh instance.
140140
141- ``` javascript
141+ ``` javascript
142142rewire (" ./myModule.js" ) === rewire (" ./myModule.js" ); // = false
143143```
144144
170170
171171### rewire(filename: String): rewiredModule
172172
173- Returns a rewired version of the module found at ` filename ` . Use ` rewire() ` exactly like ` require() ` .
173+ Returns a rewired version of the module found at ` filename ` . Use ` rewire() ` exactly like ` require() ` .
174174
175175### rewiredModule._ ;_ ; set_ ;_ ; (name: String, value: * ): Function
176176
You can’t perform that action at this time.
0 commit comments