Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26cde6b

Browse files
fjoswrickstaa
andauthored
Missing term in calculation of TOTAL_VALUES. (anuraghazra#2116)
* fix: added missing term in calculation of TOTAL_VALUES.* fix: fix rank test* refactor: update code formatting* refactor: update code formattingCo-authored-by: rickstaa <rick.staa@outlook.com>
1 parent1a4e5a6 commit26cde6b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

‎src/calculateRank.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ function calculateRank({
7070
constRANK_B_VALUE=100;
7171

7272
constTOTAL_VALUES=
73-
RANK_S_VALUE+RANK_A2_VALUE+RANK_A3_VALUE+RANK_B_VALUE;
73+
RANK_S_VALUE+
74+
RANK_DOUBLE_A_VALUE+
75+
RANK_A2_VALUE+
76+
RANK_A3_VALUE+
77+
RANK_B_VALUE;
7478

7579
// prettier-ignore
7680
constscore=(

‎tests/calculateRank.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ describe("Test calculateRank", () => {
1313
prs:300,
1414
issues:200,
1515
}),
16-
).toStrictEqual({level:"A+",score:49.16605417270399});
16+
).toStrictEqual({level:"A+",score:49.25629684876535});
1717
});
1818
});

‎tests/e2e/e2e.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const STATS_DATA = {
2222
contributedTo:2,
2323
rank:{
2424
level:"A+",
25-
score:51.01013099671447,
25+
score:50.900829325065935,
2626
},
2727
};
2828

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp