slovensko-digital/priznanie-digital

Replace hardcoded 18 with MAX_CHILD_AGE_BONUS in test files

Open

#1,116 opened on Mar 28, 2026

View on GitHub
 (0 comments) (0 reactions) (1 assignee)HTML (15 forks)auto 404
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.

Contributor guide