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:
authorjeroenvalcke <valcke_jeroen@hotmail.com>2017-11-08 13:25:19 +0300
committerjeroenvalcke <valcke_jeroen@hotmail.com>2017-11-08 13:25:19 +0300
commit501e4c29bd16eaafae348b8faba6e5b061b98bc4 (patch)
tree5e6226baa407b44cb609354c4b319c447d152753
parentc0e1b87c2a40eeb5046ed55f41f89755f1a51924 (diff)
Remove options from readme
-rw-r--r--README.md7
1 files changed, 1 insertions, 6 deletions
diff --git a/README.md b/README.md
index 03b2866..108c7a9 100644
--- a/README.md
+++ b/README.md
@@ -179,15 +179,10 @@ Please be aware that you can't rewire `eval()` or the global object itself.
API
---
-### rewire(filename: String, [options]): rewiredModule
+### rewire(filename: String): rewiredModule
Returns a rewired version of the module found at `filename`. Use `rewire()` exactly like `require()`.
-#### Options
-| Property | Default | Description |
-|----------|---------|-------------|
-| convertConst | false | Set to true to convert all `const` variables of the required module to `let`. This way you can mock const variables. **Caution**: Setting this to true can lead to inaccurate tests.
-
### rewiredModule.&#95;&#95;set&#95;&#95;(name: String, value: *): Function
Sets the internal variable `name` to the given `value`. Returns a function which can be called to revert the change.