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 toHaveEmptyStringMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be an empty string`,
notMessage: () => `expected ${propPath} of ${received} not to be an empty string`,
pass: isEmptyString(getIn(propPath.split('.'), received))
});
export const toBeEmptyStringMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be an empty string or empty instance of String`,
notMessage: () => `expected ${received} not to be an empty string or empty instance of String`,
pass: isEmptyString(received)
});