Skip to content
Merged
Prev Previous commit
Next Next commit
fix: lint
  • Loading branch information
idango10 committed May 23, 2025
commit bccd7e2c934fe135881df82a18b49881ce32bc5b
16 changes: 8 additions & 8 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2272,14 +2272,14 @@ test('mocks a property value', (t) => {

The returned mock object provides the following methods:

- `callGetterCount()`: Retrieves the number of times the property was read.
- `callSetterCount()`: Retrieves the number of times the property was written.
- `callCount()`: Retrieves the total number of times the property was accessed (getter or setter).
- `mockValue(value)`: Sets the current mock value.
- `resetCallGetters()`: Resets only the getter call count.
- `resetCallSetters()`: Resets only the setter call count.
- `resetCalls()`: Resets both getter and setter call counts.
- `restore()`: Restores the original property value and descriptor.
* `callGetterCount()`: Retrieves the number of times the property was read.
* `callSetterCount()`: Retrieves the number of times the property was written.
* `callCount()`: Retrieves the total number of times the property was accessed (getter or setter).
* `mockValue(value)`: Sets the current mock value.
* `resetCallGetters()`: Resets only the getter call count.
* `resetCallSetters()`: Resets only the setter call count.
* `resetCalls()`: Resets both getter and setter call counts.
* `restore()`: Restores the original property value and descriptor.

### `mock.reset()`

Expand Down
Loading