Lines Matching refs:setter
190 * @param {boolean} [options.setter=false] - Indicates whether this is a setter method.
215 setter = false,
220 validateBoolean(setter, 'options.setter');
223 if (setter && getter) {
225 'options.setter', setter, "cannot be used with 'options.getter'",
234 } else if (setter) {
260 } else if (setter) {
281 * @param {boolean} [options.setter=false] - Indicates whether this is a setter method.
314 * Mocks a setter method of an object.
315 * This function is a syntax sugar for MockTracker.method with options.setter set to true.
317 * @param {string} methodName - The setter method to be mocked.
321 * @param {boolean} [options.setter=true] - Indicates whether this is a setter method.
325 setter(
338 const { setter = true } = options;
340 if (setter === false) {
342 'options.setter', setter, 'cannot be false',
349 setter,