mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 23:32:54 +00:00
Missing term in calculation of TOTAL_VALUES. (#2116)
* fix: added missing term in calculation of TOTAL_VALUES. * fix: fix rank test * refactor: update code formatting * refactor: update code formatting Co-authored-by: rickstaa <rick.staa@outlook.com>
This commit is contained in:
parent
1a4e5a6955
commit
26cde6bfe9
3 changed files with 7 additions and 3 deletions
|
|
@ -70,7 +70,11 @@ function calculateRank({
|
|||
const RANK_B_VALUE = 100;
|
||||
|
||||
const TOTAL_VALUES =
|
||||
RANK_S_VALUE + RANK_A2_VALUE + RANK_A3_VALUE + RANK_B_VALUE;
|
||||
RANK_S_VALUE +
|
||||
RANK_DOUBLE_A_VALUE +
|
||||
RANK_A2_VALUE +
|
||||
RANK_A3_VALUE +
|
||||
RANK_B_VALUE;
|
||||
|
||||
// prettier-ignore
|
||||
const score = (
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ describe("Test calculateRank", () => {
|
|||
prs: 300,
|
||||
issues: 200,
|
||||
}),
|
||||
).toStrictEqual({ level: "A+", score: 49.16605417270399 });
|
||||
).toStrictEqual({ level: "A+", score: 49.25629684876535 });
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const STATS_DATA = {
|
|||
contributedTo: 2,
|
||||
rank: {
|
||||
level: "A+",
|
||||
score: 51.01013099671447,
|
||||
score: 50.900829325065935,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue