my-kaiqiuwang/__test__/kaiqiu-login.test.ts
kyuuseiryuu 4453dd6430 refactor(service, routes, types): extract match summary and link to club
- Extract club information (clubId, clubName) from event page in `getEventInfo`.
- Update `getMatchDetail` to return both `detail` and `summary`.
- Introduce `MatchSummary` interface in `src/types/index.ts`.
- Update `EventPage` to display the club name and link to the club page.
- Adjust `EventSubscribeService` and loaders to handle the new return structure.
- Clean up test files and mock data loading logic.
2026-03-25 23:20:33 +09:00

8 lines
268 B
TypeScript

import { test, expect } from 'bun:test';
import { KaiqiuService } from '../src/services/KaiqiuService';
test('login success', async () => {
const { ...result } = await KaiqiuService.login('', '');
console.debug(result);
expect(result.cookies).toBeDefined();
});