I have a question about this test:
test('Return today\'s date in the format: May 29, 2019', () => {
const cal = dates.calendar()
expect(cal).toMatch(/^[A-z]{3} [0-9]{2}, [0-9]{4}$/)
})
It's in test/index.test.js the 2nd dates test.
I think it's trying to match the month name to have 3 characters, but July for example has 4, so it will fail if the user returns any months with more characters than May
I have a question about this test:
It's in
test/index.test.jsthe 2nd dates test.I think it's trying to match the month name to have 3 characters, but
Julyfor example has 4, so it will fail if the user returns any months with more characters thanMay