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 toHaveEmptyArrayMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be an empty array`,
notMessage: () => `expected ${propPath} of ${received} not to be an empty array`,
pass: isEmptyArray(getIn(propPath.split('.'), received))
});
export const toBeEmptyArrayMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be an array without any items`,
notMessage: () => `expected ${received} not to be an array without any items`,
pass: isEmptyArray(received)
});