Skip to content

Commit

Permalink
Fixed tests for phoenix rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
grumd committed Jan 28, 2024
1 parent 92f0890 commit 0cc9b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/test/unit/add-result.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ describe('Add new result manually', () => {
.executeTakeFirst();
player = await db.selectFrom('players').selectAll().where('id', '=', 7).executeTakeFirst();

// Actual score is calculated as 872977.52 - database is rounding the number, but we can change this if needed to align with how Andamiro does it
assert.equal(thirdResult?.score_phoenix, 872977, 'Phoenix score is calculated correctly');
// Actual score is calculated as 872976.52 - should be rounded down
assert.equal(thirdResult?.score_phoenix, 872976, 'Phoenix score is calculated correctly');

const thirdPp = player?.pp;

Expand Down

0 comments on commit 0cc9b3a

Please sign in to comment.