From ef8dae7fb263f93adde6b1b374e1e5cfe23f97da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Sat, 25 Jul 2026 02:30:09 -0300 Subject: [PATCH] Fix stale computeGoalCoverage call left by main's E18 test file The rebase auto-merged tests/unit/goalCoverage.unit.spec.ts against origin/main without a conflict, but one assertion in the merged file still called computeGoalCoverage with a raw number for the suggested goal, from before this branch's Fase 0 (SuggestedGoalByScenario). Wrap it in the file's own suggested() helper, matching every other call site in the file. Caught by the pre-push tsc gate. --- tests/unit/goalCoverage.unit.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/goalCoverage.unit.spec.ts b/tests/unit/goalCoverage.unit.spec.ts index b724796a..f3fd6cc5 100644 --- a/tests/unit/goalCoverage.unit.spec.ts +++ b/tests/unit/goalCoverage.unit.spec.ts @@ -101,7 +101,7 @@ describe('goal coverage labels', () => { it('renders a fractional decomposed goal as whole votes', () => { // A suggested goal of 100.968 votes must not read as "100,968" in pt-BR. const aggregate = createEmptyMunicipalityPledgeAggregate() - const coverage = computeGoalCoverage(null, 100.968, aggregate, 'central') + const coverage = computeGoalCoverage(null, suggested(100.968), aggregate, 'central') expect(formatGoalCoverageDeficitLabel(coverage)).toBe('Faltam 101 votos para a meta') }) })