Skip to content

Commit 812f970

Browse files
committed
hack
1 parent 0c6f34e commit 812f970

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ configured by your test to either stub responses or assert invocations.
8383

8484
**`td.replace('../path/to/module'[, customReplacement])`**
8585

86-
If you're using Node.js and don't mind using the CommonJS `require` method in
86+
If you're using Node.js and don't mind using the CommonJS `require()` method in
8787
your tests (you can still use `import`/`export` in your production code,
8888
assuming you're compiling it down for consumption by your tests), testdouble.js
8989
uses a library we wrote called [quibble](https://github.com/testdouble/quibble)
90-
to monkey-patch the `require()` feature so that your subject will automatically
91-
receive your faked dependencies simply by requiring them. If you've used
92-
something like [proxyquire](https://github.com/thlorenz/proxyquire), this is
93-
like a slightly terser form of that.
90+
to monkey-patch `require()` so that your subject will automatically receive your
91+
faked dependencies simply by requiring them. This approach may be familiar if you've used something like
92+
[proxyquire](https://github.com/thlorenz/proxyquire), but our focus was to
93+
enable an even more minimal test setup.
9494

9595
Here's an example of using `td.replace()` in a Node.js test's setup:
9696

0 commit comments

Comments
 (0)