Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improve Code Readability and Maintainability
In this commit, I've made the following enhancements to the code: 1. Replaced the magic value 17 with meaning constant for clarity. 2. Instead of directly checking the disabledTimeItems.length to be 2, make sure whether it's really the value we assigned (17 or 5pm). 3. Split the test-cases and move the test-case for checking the aria-disabled attribute to a separate it block. Closes Hacker0x01#4334
- Loading branch information