diff --git a/doc/api/test.md b/doc/api/test.md index 6bfff0c341bfa7..3588c6d6acd45b 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -941,6 +941,15 @@ test('mocks a counting function', (t) => { }); ``` +### `mock.getter(object, methodName[, implementation][, options])` + + + +This function is syntax sugar for [`MockTracker.method`][] with `options.getter` +set to `true`. + ### `mock.method(object, methodName[, implementation][, options])` + +This function is syntax sugar for [`MockTracker.method`][] with `options.setter` +set to `true`. + ## Class: `TapStream`