chore: update version to 1.8.13 and dependencies; enhance CSV sorting for championships
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 6m56s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped

This commit is contained in:
Torsten Schulz (local)
2026-10-22 23:03:26 +02:00
parent 5c964592a8
commit b86555744f
5 changed files with 2706 additions and 2405 deletions

View File

@@ -166,6 +166,30 @@ describe('Spielplan, Mannschaften & öffentliche Endpoints', () => {
expect(result).toContain('Max Muster')
expect(result).toContain('2024')
})
it('sortiert nach Jahr, Einzel/Doppel und Platzierung', async () => {
vi.spyOn(fs, 'access').mockResolvedValue(undefined)
vi.spyOn(fs, 'readFile').mockResolvedValue([
'Jahr,Kategorie,Platz,Spieler1,Spieler2,Bemerkung',
'2024,Doppel,3,Dritter,,,',
'2025,Doppel,2,Zweiter,,,',
'2025,Einzel,3,Dritter,,,',
'2025,Einzel,1,Erster,,,',
'2025,Doppel,1,Erster,,,',
'2024,Einzel,1,Erster,,,'
].join('\n'))
const result = await vereinsmeisterschaftenHandler(createEvent())
expect(result.split('\n').slice(1)).toEqual([
'2025,Einzel,1,Erster,,,',
'2025,Einzel,3,Dritter,,,',
'2025,Doppel,1,Erster,,,',
'2025,Doppel,2,Zweiter,,,',
'2024,Einzel,1,Erster,,,',
'2024,Doppel,3,Dritter,,,'
])
})
})
describe('GET /api/birthdays', () => {