Lines Matching refs:getter
189 * @param {boolean} [options.getter=false] - Indicates whether this is a getter method.
214 getter = false,
219 validateBoolean(getter, 'options.getter');
223 if (setter && getter) {
225 'options.setter', setter, "cannot be used with 'options.getter'",
232 if (getter) {
257 if (getter) {
274 * Mocks a getter method of an object.
275 * This is a syntax sugar for the MockTracker.method with options.getter set to true
277 * @param {string} methodName - The name of the getter method to be mocked.
280 * @param {boolean} [options.getter=true] - Indicates whether this is a getter method.
285 getter(
298 const { getter = true } = options;
300 if (getter === false) {
302 'options.getter', getter, 'cannot be false',
309 getter,
320 * @param {boolean} [options.getter=false] - Indicates whether this is a getter method.