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 toHaveEmptyObjectMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be an empty object`,
notMessage: () => `expected ${propPath} of ${received} not to be an empty object`,
pass: isEmptyObject(getIn(propPath.split('.'), received))
});
export const toBeEmptyObjectMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be an object without any own members`,
notMessage: () => `expected ${received} not to be an object without any own members`,
pass: isEmptyObject(received)
});