fix(B176): ordena o scope esperado do int spec (alocação não é ascendente)

This commit is contained in:
Francisco Solla 2026-08-09 03:11:49 -03:00
parent 97dd13443e
commit 663c57919f

View file

@ -46,7 +46,8 @@ describe('municipality list relation filters (B176)', () => {
fixtures.getMunicipality(),
fixtures.getMunicipality(),
])
const scope = [a.id, b.id, c.id]
// `idsFor` returns ascending ids, so the expected scope must be sorted too.
const scope = [a.id, b.id, c.id].sort((left, right) => left - right)
const idsFor = async (extra: Where): Promise<number[]> => {
const result = await payload.find({