Skip to content

Commit 00b8761

Browse files
authored
Update 4-creating-test-doubles.md
1 parent 2cf67d1 commit 00b8761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/4-creating-test-doubles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ cat.meow // a test double function named 'meow'
132132

133133
### object([objectName])
134134

135-
If passed either a string name or no arguments at all, `td.object` will return an [ES2015 Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) object designed to forward any property access as if it was a test double function. By using `Proxy`, testdouble.js is able to intercept calls to properties that don't exist, immediately create a new test double function, and invoke that function for use in either stubbing or verifying behavior.
135+
If passed either a string name or no arguments at all, `td.object` will return an [ES2015 Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) object designed to forward any property access as if it were a test double function. By using `Proxy`, testdouble.js is able to intercept calls to properties that don't exist, immediately create a new test double function, and invoke that function for use in either stubbing or verifying behavior.
136136

137137
``` javascript
138138
var parrot = td.object('Parrot')

0 commit comments

Comments
 (0)