diff --git a/src/calculateRank.js b/src/calculateRank.js index 85d9658..23d61db 100644 --- a/src/calculateRank.js +++ b/src/calculateRank.js @@ -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 = ( diff --git a/tests/calculateRank.test.js b/tests/calculateRank.test.js index 5cc19a0..235b1b5 100644 --- a/tests/calculateRank.test.js +++ b/tests/calculateRank.test.js @@ -13,6 +13,6 @@ describe("Test calculateRank", () => { prs: 300, issues: 200, }), - ).toStrictEqual({ level: "A+", score: 49.16605417270399 }); + ).toStrictEqual({ level: "A+", score: 49.25629684876535 }); }); }); diff --git a/tests/e2e/e2e.test.js b/tests/e2e/e2e.test.js index 0a38d98..48bf16a 100644 --- a/tests/e2e/e2e.test.js +++ b/tests/e2e/e2e.test.js @@ -22,7 +22,7 @@ const STATS_DATA = { contributedTo: 2, rank: { level: "A+", - score: 51.01013099671447, + score: 50.900829325065935, }, };