fix: resolve remaining TypeScript and linting errors
- Fixed unused variables in unit tests (elo.test.ts, permissions.test.ts) - Fixed unused variables in E2E tests (account-acceptance.test.ts, elo-ratings.test.ts, epic1-auth-registration.test.ts, global.setup.ts) - Fixed 'any' type usage in EditTournamentForm.test.tsx and auth-simple.test.ts - Fixed unescaped quotes and apostrophes in React components - Fixed TypeScript type errors in Navigation.tsx, test-api/page.tsx, and matches/upload/page.tsx - Fixed missing useEffect dependency in tournaments/[id]/entry/page.tsx - Updated eslint config to exclude test-api directory - All tests now pass linting and build successfully
This commit is contained in:
@@ -141,9 +141,6 @@ describe('Elo Rating System', () => {
|
||||
const team1Rating = calculateTeamElo(player1Rating, player2Rating);
|
||||
const team2Rating = calculateTeamElo(player3Rating, player4Rating);
|
||||
|
||||
const team1Expected = calculateExpectedScore(team1Rating, team2Rating);
|
||||
const team2Expected = calculateExpectedScore(team2Rating, team1Rating);
|
||||
|
||||
// Team 1 wins (score = 1, team 2 score = 0)
|
||||
const team1Change = calculateEloChange(team1Rating, team2Rating, 1, K_FACTOR);
|
||||
const team2Change = calculateEloChange(team2Rating, team1Rating, 0, K_FACTOR);
|
||||
|
||||
Reference in New Issue
Block a user