diff options
author | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-08 13:25:19 +0300 |
---|---|---|
committer | jeroenvalcke <valcke_jeroen@hotmail.com> | 2017-11-08 13:25:19 +0300 |
commit | 501e4c29bd16eaafae348b8faba6e5b061b98bc4 (patch) | |
tree | 5e6226baa407b44cb609354c4b319c447d152753 | |
parent | c0e1b87c2a40eeb5046ed55f41f89755f1a51924 (diff) |
Remove options from readme
-rw-r--r-- | README.md | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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. |