From 501e4c29bd16eaafae348b8faba6e5b061b98bc4 Mon Sep 17 00:00:00 2001 From: jeroenvalcke Date: Wed, 8 Nov 2017 11:25:19 +0100 Subject: Remove options from readme --- README.md | 7 +------ 1 file changed, 1 insertion(+), 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. -- cgit v1.2.3