mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-15 18:53:06 +00:00
Fecha a navegação inversa para /campanha/territorios com âncoras estáveis compartilhadas entre lista e destino.
25 lines
724 B
TypeScript
25 lines
724 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { municipalityGeographyParts } from '@/utilities/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' })
|
|
})
|
|
})
|