mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-29 17:43:05 +00:00
fix(B176): ordena o scope esperado do int spec (alocação não é ascendente)
This commit is contained in:
parent
97dd13443e
commit
663c57919f
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,8 @@ describe('municipality list relation filters (B176)', () => {
|
||||||
fixtures.getMunicipality(),
|
fixtures.getMunicipality(),
|
||||||
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 idsFor = async (extra: Where): Promise<number[]> => {
|
||||||
const result = await payload.find({
|
const result = await payload.find({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue