mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +00:00
Fold duplicated campanha access, loaders, list/filter/form shells, and scripts into shared modules; reorganize utilities by domain; stabilize e2e; and document prevention-first audit workflow so the same smells cannot creep back in.
25 lines
737 B
TypeScript
25 lines
737 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { municipalityGeographyParts } from '@/utilities/municipality/municipalityLabels'
|
|
|
|
describe('municipalityGeographyParts', () => {
|
|
it('returns only the region for whole municipalities', () => {
|
|
expect(
|
|
municipalityGeographyParts({
|
|
region: 'Chapada Diamantina',
|
|
kind: 'municipio',
|
|
zoneNumber: null,
|
|
}),
|
|
).toEqual({ region: 'Chapada Diamantina', zoneSuffix: null })
|
|
})
|
|
|
|
it('keeps the ZE suffix outside the linkable region name', () => {
|
|
expect(
|
|
municipalityGeographyParts({
|
|
region: 'Salvador',
|
|
kind: 'zona',
|
|
zoneNumber: 5,
|
|
}),
|
|
).toEqual({ region: 'Salvador', zoneSuffix: '· ZE 5' })
|
|
})
|
|
})
|