code quality
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped

This commit is contained in:
2026-01-26 17:22:01 +01:00
parent cfc30c79a8
commit 9ac74f5046
305 changed files with 1192 additions and 607 deletions

View File

@@ -141,7 +141,7 @@ describe('requireLeagueAdminOrOwner', () => {
try {
await requireLeagueAdminOrOwner('league-123', mockGetLeagueAdminPermissionsUseCase);
expect(true).toBe(false); // Should not reach here
} catch (error) {
} catch (error: any) {
expect(error).toBeInstanceOf(ForbiddenException);
expect(error.message).toBe('Forbidden');
}
@@ -192,7 +192,7 @@ describe('requireLeagueAdminOrOwner', () => {
mockGetActorFromRequestContext.mockReturnValue({
userId: 'user-123',
driverId: 'driver-123',
role: null,
role: undefined,
});
const mockResult = {