chore: add variant scoring fields, fix tie handling, and fix test files for normalizedName
This commit is contained in:
@@ -98,6 +98,7 @@ test.describe('Elo Rating Updates', () => {
|
||||
const player1 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 1',
|
||||
normalizedName: 'elo test player 1',
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -108,6 +109,7 @@ test.describe('Elo Rating Updates', () => {
|
||||
const player2 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 2',
|
||||
normalizedName: 'elo test player 2',
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -118,6 +120,7 @@ test.describe('Elo Rating Updates', () => {
|
||||
const player3 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 3',
|
||||
normalizedName: 'elo test player 3',
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -128,6 +131,7 @@ test.describe('Elo Rating Updates', () => {
|
||||
const player4 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 4',
|
||||
normalizedName: 'elo test player 4',
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -369,6 +373,7 @@ ${tournament.id},2,1,${player1.name},${player3.name},10,${player2.name},${player
|
||||
const player = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Profile Player',
|
||||
normalizedName: 'elo test profile player',
|
||||
currentElo: 1750,
|
||||
gamesPlayed: 50,
|
||||
wins: 30,
|
||||
|
||||
Reference in New Issue
Block a user