chore: update version to 1.8.13 and dependencies; enhance CSV sorting for championships
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user