export const toHaveDateOnDayOfWeekMatcher: jasmine.CustomMatcherFactory = () => {
  return {
    compare(value: unknown, propPath: string, index: number) {
      const pass = isDateOnDayOfWeek(index, getIn(propPath.split('.'), value));
      const message = pass