mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-30 18:53:10 +00:00
test: pin home search municipality scope fixtures to distinct slugs
This commit is contained in:
parent
5d45909780
commit
c7aac4da1b
1 changed files with 7 additions and 2 deletions
|
|
@ -48,12 +48,17 @@ describe('searchHomeMunicipalities (B48)', () => {
|
||||||
const advisor = await fixtures.createCampaignUser('advisor')
|
const advisor = await fixtures.createCampaignUser('advisor')
|
||||||
const coordinator = await fixtures.createCampaignUser('coordinator')
|
const coordinator = await fixtures.createCampaignUser('coordinator')
|
||||||
|
|
||||||
const administered = await fixtures.getMunicipality()
|
const administered = await fixtures.getMunicipality('cairu')
|
||||||
const other = await fixtures.getMunicipality()
|
const other = await fixtures.getMunicipality('feira-de-santana')
|
||||||
await fixtures.assignMunicipalityAdvisors(administered.id, [advisor.id])
|
await fixtures.assignMunicipalityAdvisors(administered.id, [advisor.id])
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
const otherQuery = distinctWordStartQuery(other.name, administered.name)
|
const otherQuery = distinctWordStartQuery(other.name, administered.name)
|
||||||
const administeredQuery = distinctWordStartQuery(administered.name, other.name)
|
const administeredQuery = distinctWordStartQuery(administered.name, other.name)
|
||||||
|
=======
|
||||||
|
const otherQuery = 'Feira'
|
||||||
|
const administeredQuery = 'Cairu'
|
||||||
|
>>>>>>> 798c289 (test: pin home search municipality scope fixtures to distinct slugs)
|
||||||
|
|
||||||
const advisorResult = await searchHomeMunicipalities(payload, advisor, otherQuery)
|
const advisorResult = await searchHomeMunicipalities(payload, advisor, otherQuery)
|
||||||
expect(advisorResult.municipalities.map((hit) => hit.slug)).toEqual([])
|
expect(advisorResult.municipalities.map((hit) => hit.slug)).toEqual([])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue