We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mock.property
1 parent 1d02888 commit e1d143fCopy full SHA for e1d143f
doc/api/test.md
@@ -2330,7 +2330,7 @@ added: REPLACEME
2330
* `object` {Object} The object whose value is being mocked.
2331
* `propertyName` {string|symbol} The identifier of the property on `object` to mock.
2332
* `value` {any} An optional value used as the mock value
2333
- for `object[valueName]`. **Default:** The original property value.
+ for `object[propertyName]`. **Default:** The original property value.
2334
* Returns: {Proxy} A proxy to the mocked object. The mocked object contains a
2335
special `mock` property, which is an instance of [`MockPropertyContext`][], and
2336
can be used for inspecting and changing the behavior of the mocked property.
0 commit comments