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 toHaveFalseMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be false`,
notMessage: () => `expected ${propPath} of ${received} not to have false`,
pass: isFalse(getIn(propPath.split('.'), received))
});
export const toBeFalseMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be false or Boolean(false)`,
notMessage: () => `expected ${received} not to be false or Boolean(false)`,
pass: isFalse(received)
});