mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-19 17:13:07 +00:00
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:
parent
31fcc20ffd
commit
ef8dae7fb2
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ describe('goal coverage labels', () => {
|
||||||
it('renders a fractional decomposed goal as whole votes', () => {
|
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.
|
// A suggested goal of 100.968 votes must not read as "100,968" in pt-BR.
|
||||||
const aggregate = createEmptyMunicipalityPledgeAggregate()
|
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')
|
expect(formatGoalCoverageDeficitLabel(coverage)).toBe('Faltam 101 votos para a meta')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue