CUCB / CUCB/website

Add tests for gig calendar

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
nice to have testing
Dominant language
TypeScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When migrating moment to dayjs, there were no tests to check the calendar was showing the correct dates, so I had to test it manually. It would be useful if we had tests to check:

- First day of week is what the user specified in the customiser
- Dates line up with days shown at the top of the calendar (so in January 2021 the 1st would be in the column labelled "Fri")
- The year switching select box updates to show the 20 years around the selected year and has the correct month/year selected when the page loads (this was a problem in moment due to mutability that shouldn't reoccur but I failed to fix at the first attempt).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.