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 toHaveArrayOfBooleansMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be an array of booleans`,
notMessage: () => `expected ${propPath} of ${received} not to be an array of booleans`,
pass: isArrayOfBooleans(getIn(propPath.split('.'), received))
});
export const toBeArrayOfBooleansMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be a non-empty array, containing only boolean values`,
notMessage: () => `expected ${received} not to be a non-empty array, containing only boolean values`,
pass: isArrayOfBooleans(received)
});