import { isMonthAndYearFormat } from '..';

describe('isDateValid', () => {
  it('should return false if day is provided as string', () => {
    expect(isMonthAndYearFormat('1998-02-04')).toBe(false);
  });

  it('should return true if day is not provided as string', () => {
    expect(isMonthAndYearFormat('1998-02')).toBe(true);
  });
});
