Skip to content

Commit

Permalink
Merge pull request #280 from OriginTrail/fix/unit-tests
Browse files Browse the repository at this point in the history
Fixed unit tests
  • Loading branch information
br-41n authored Jun 21, 2024
2 parents 2efb836 + 5e4b7a1 commit 77e227e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/v2/unit/LinearSum.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ describe('@v2 @unit LinearSum', function () {
BigNumber.from('1000000000000000000'),
BigNumber.from('1000000000000000000'),
1,
100,
10,
]);
});

Expand Down Expand Up @@ -319,9 +319,9 @@ describe('@v2 @unit LinearSum', function () {
minStake,
maxStake,
);
expect(scoreBeforeScaling).to.be.equal(BigNumber.from('3064102564102564100'));
expect(scoreBeforeScaling).to.be.equal(BigNumber.from('756410256410256410'));

const score = await calculateScore(distance, stake, maxDistance, 1, 1, minStake, maxStake);
expect(score).to.be.equal(BigNumber.from('33356597999'));
expect(score).to.be.equal(BigNumber.from('75607442935'));
});
});

0 comments on commit 77e227e

Please sign in to comment.