Skip to content

Commit

Permalink
Remove options from readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JvJefke committed Nov 8, 2017
1 parent c0e1b87 commit 501e4c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 501e4c2

Please sign in to comment.