diff --git a/doc/api/test.md b/doc/api/test.md index 4d5c50f51ff8ec..93f3e5d20d3a90 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -940,6 +940,15 @@ test('mocks a counting function', (t) => { assert.strictEqual(fn(), 6); }); ``` +they are sorted in alphabetical order. +### `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])` @@ -1021,6 +1030,15 @@ This function restores the default behavior of all mocks that were previously created by this `MockTracker`. Unlike `mock.reset()`, `mock.restoreAll()` does not disassociate the mocks from the `MockTracker` instance. +### `mock.setter(object, methodName[, implementation][, options])` + + + +This function is syntax sugar for [`MockTracker.method`][] with `options.setter` +set to `true`. + ## Class: `TapStream`