Expect club-register people in the FPA squad sync test.
ci / rust (pull_request) Successful in 5m10s
ci / typescript (pull_request) Successful in 8m31s

This commit is contained in:
spark committed 2026-10-28 00:49:22 +00:00
1 parent 9d0b19d1f0
commit c5e90e6d89
1 file changed
+2
+2
View File
@@ -575,7 +575,9 @@ describe("sports data service", () => {
expect(created.statusCode).toBe(201);
expect((await ctx.app.inject({ method: "POST", url: `/v1/events/${created.json().id}/squads/sync`, headers: bearer(token) })).statusCode).toBe(200);
const people = await ctx.db.person.findMany({ where: { organizationId: org!.id }, orderBy: { name: "asc" } });
// Ana Costa comes from the club register (getCipClubeEpoca), not the match sheet — coaches and the rest of the club.
expect(people.map((p) => [p.name, p.club, p.number, !!p.referenceKey])).toEqual([
["Ana Costa", null, null, true],
["Bruno Costa", "Arbitragem", null, false],
["Carlos Mesa", "Arbitragem", null, false],
["Duarte Sá", "Arbitragem", null, true],