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:
-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.__set__(name: String, value: *): Function
Sets the internal variable `name` to the given `value`. Returns a function which can be called to revert the change.