chore: fix linting errors in tests and api routes

This commit is contained in:
2026-03-30 22:58:33 -07:00
parent 6f83080fca
commit b0aaffbecf
4 changed files with 9 additions and 8 deletions
@@ -6,7 +6,7 @@
*/
import { describe, test, expect, vi, beforeEach } from 'vitest';
import { canManageTournament, ownsTournament, hasRole, getManageableTournaments } from '@/lib/permissions';
import { canManageTournament, ownsTournament, getManageableTournaments } from '@/lib/permissions';
import { getSession } from '@/lib/auth-simple';
import { prisma } from '@/lib/prisma';
import type { User, Event } from '@prisma/client';
@@ -53,6 +53,8 @@ const createMockTournament = (id: number, ownerId: string | null): Event => ({
status: 'planned',
maxParticipants: null,
ownerId,
targetScore: null,
allowTies: false,
createdAt: new Date(),
updatedAt: new Date(),
});