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.
This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-07-25 02:30:09 -03:00
parent 31fcc20ffd
commit ef8dae7fb2

View file

@ -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')
})
})