slovensko-digital/priznanie-digital

Replace hardcoded 18 with MAX_CHILD_AGE_BONUS in test files

开放

#1,116 创建于 2026年3月28日

 (0 条评论) (0 个反应) (1 位负责人)HTML (15 个派生)auto 404
good first issuehackathon

仓库指标

星标
 (20 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南