@@ -302,7 +302,7 @@ class MockTracker {
302
302
* @param {Function } [original] - The original function to be tracked.
303
303
* @param {Function } [implementation] - An optional replacement function for the original one.
304
304
* @param {object } [options] - Additional tracking options.
305
- * @param {number } [options.times=Infinity ] - The maximum number of times the mock function can be called.
305
+ * @param {number } [options.times] - The maximum number of times the mock function can be called.
306
306
* @returns {ProxyConstructor } The mock function tracker.
307
307
*/
308
308
fn (
@@ -334,9 +334,9 @@ class MockTracker {
334
334
* @param {string } methodName - The name of the method to be tracked.
335
335
* @param {Function } [implementation] - An optional replacement function for the original method.
336
336
* @param {object } [options] - Additional tracking options.
337
- * @param {boolean } [options.getter=false ] - Indicates whether this is a getter method.
338
- * @param {boolean } [options.setter=false ] - Indicates whether this is a setter method.
339
- * @param {number } [options.times=Infinity ] - The maximum number of times the mock method can be called.
337
+ * @param {boolean } [options.getter] - Indicates whether this is a getter method.
338
+ * @param {boolean } [options.setter] - Indicates whether this is a setter method.
339
+ * @param {number } [options.times] - The maximum number of times the mock method can be called.
340
340
* @returns {ProxyConstructor } The mock method tracker.
341
341
*/
342
342
method (
@@ -425,9 +425,9 @@ class MockTracker {
425
425
* @param {string } methodName - The name of the getter method to be mocked.
426
426
* @param {Function } [implementation] - An optional replacement function for the targeted method.
427
427
* @param {object } [options] - Additional tracking options.
428
- * @param {boolean } [options.getter=true ] - Indicates whether this is a getter method.
429
- * @param {boolean } [options.setter=false ] - Indicates whether this is a setter method.
430
- * @param {number } [options.times=Infinity ] - The maximum number of times the mock method can be called.
428
+ * @param {boolean } [options.getter] - Indicates whether this is a getter method.
429
+ * @param {boolean } [options.setter] - Indicates whether this is a setter method.
430
+ * @param {number } [options.times] - The maximum number of times the mock method can be called.
431
431
* @returns {ProxyConstructor } The mock method tracker.
432
432
*/
433
433
getter (
@@ -465,9 +465,9 @@ class MockTracker {
465
465
* @param {string } methodName - The setter method to be mocked.
466
466
* @param {Function } [implementation] - An optional replacement function for the targeted method.
467
467
* @param {object } [options] - Additional tracking options.
468
- * @param {boolean } [options.getter=false ] - Indicates whether this is a getter method.
469
- * @param {boolean } [options.setter=true ] - Indicates whether this is a setter method.
470
- * @param {number } [options.times=Infinity ] - The maximum number of times the mock method can be called.
468
+ * @param {boolean } [options.getter] - Indicates whether this is a getter method.
469
+ * @param {boolean } [options.setter] - Indicates whether this is a setter method.
470
+ * @param {number } [options.times] - The maximum number of times the mock method can be called.
471
471
* @returns {ProxyConstructor } The mock method tracker.
472
472
*/
473
473
setter (
0 commit comments