chore: fix linting errors in tests and api routes
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user