slovensko-digital/priznanie-digital
View on GitHubReplace hardcoded 18 with MAX_CHILD_AGE_BONUS in test files
Open
#1,116 opened on Mar 28, 2026
good first issuehackathon
Repository metrics
- Stars
- (20 stars)
- PR merge metrics
- (PR metrics pending)
Description
MAX_CHILD_AGE_BONUS = 18 is already exported from src/lib/calculation.ts. The child age boundary is hardcoded as 18 in several test files. If the value ever changes, tests won't reflect it automatically. As it used to be 25 in the past, better be prepare for it.