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 toHaveDateMatcher = (received: any, propPath: string) =>
createResult({
message: () => `expected ${propPath} of ${received} to be an instance of Date`,
notMessage: () => `expected ${propPath} of ${received} not to be an instance of Date`,
pass: isDate(getIn(propPath.split('.'), received))
});
export const toBeDateMatcher = (received: any) =>
createResult({
message: () => `expected ${received} to be an instance of Date`,
notMessage: () => `expected ${received} not to be an instance of Date`,
pass: isDate(received)
});