Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const toHaveMethodMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be a method (function)`,
notMessage: () => `expected ${propPath} of ${received} not to be a method (function)`,
pass: isFunction(getIn(propPath.split('.'), received))
});
export const toBeFunctionMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be a function`,
notMessage: () => `expected ${received} not to be a function`,
pass: isFunction(received)
});