Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get(target, propKey) {
// calling methods on WebElementEnhanced API
if (isFunction(target[propKey])) {
return async function (...args) {
return target[propKey](...args);
};
}
// calling methods on the original WebElement API
return async function (...args) {
return target.webElement[propKey](...args);
};
},
};
it('exports a function', () => {
expect(RA.isFunction(detectCheckTookTooLong)).toBe(true)
})
return this[chain]((val) => {
if (!predicate(val)) {
if (isFunction(fnOrValue)) {
return this.constructor.fromEither(Either.Left(fnOrValue(val)));
}
return this.constructor.fromEither(Either.Left(fnOrValue));
}
return this.constructor.fromValue(val);
});
};
reduce((sofar, [nextKey, nextPopulator]) => {
const value = isFunction(nextPopulator)
? nextPopulator(object)
: populateFields(nextPopulator, object)
sofar[nextKey] = value
return sofar
}, {}),
filter(isNil)