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 toHaveBooleanMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be boolean`,
notMessage: () => `expected ${propPath} of ${received} not to be boolean`,
pass: isBoolean(getIn(propPath.split('.'), received))
});
export const toBeBooleanMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be true, false, or an instance of Boolean`,
notMessage: () => `expected ${received} not to be true, false, or an instance of Boolean`,
pass: isBoolean(received)
});