diff --git a/doc/api/test.md b/doc/api/test.md index 4272bde0981aed..47a0f3958ffcf0 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -927,6 +927,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`