@@ -61,7 +61,7 @@ started with testdouble.js:
61
61
Its outline is in [ docs/README.md] ( /docs#readme )
62
62
63
63
Of course, if you're unsure of how to approach writing an isolated test with
64
- testdouble.js, we welcome you to [ open a issue on GitHub to ask a
64
+ testdouble.js, we welcome you to [ open an issue on GitHub to ask a
65
65
question] ( https://github.com/testdouble/testdouble.js/issues/new ) .
66
66
67
67
## API
@@ -71,13 +71,13 @@ question](https://github.com/testdouble/testdouble.js/issues/new).
71
71
The first thing a test double library needs to do is give you a way to replace
72
72
the production dependencies of your [ subject under
73
73
test] ( https://github.com/testdouble/contributing-tests/wiki/Subject ) with fake
74
- ones created by the library .
74
+ ones controlled by your test .
75
75
76
76
We provide a top-level method called ` td.replace() ` that operates in two
77
77
different modes: CommonJS module replacement and object-property replacement.
78
- Both modes will, by default, perform a deep clone the real dependency but
79
- replace all of its functions with fake test double functions that you can
80
- configure and observe .
78
+ Both modes will, by default, perform a deep clone the real dependency which
79
+ replaces all functions it encounters with fake test double functions that can be
80
+ configured by your test to either stub responses or assert invocations .
81
81
82
82
#### Module replacement with Node.js
83
83
0 commit comments