-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fixed-periods): prevent infinite loops (#52)
* feat(fixed-periods): add isValidPeriodType helper * fix(fixed-periods): ensure year is always a valid int * fix(fixed-periods): ensure startDayOfWeek is always a number * fix(fixed-periods): throw error on invalid periodType getFixedPeriodType * chore(fixed-periods): restructure test file * fix(fixed-periods): throw error if getYearOffsetFromNow gets bad input * fix(fixed-periods): add additional check to getFixedPeriodType * fix(period-types): ensure startDate and endDate are valid dates * fix(fixed-periods): improve validation on getMostRecentCompletedYear * fix(fixed-periods): implement feedback
- Loading branch information
1 parent
dc5bc23
commit f9175b0
Showing
3 changed files
with
375 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.