mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-12-27 06:25:47 +08:00
8aea1e3c35
* 🚀 Prettier config * 🚀 hide_border for Repo Card * fix: wrong total commits (#490) * chore: run prettier on all files * chore: lol lets add the trailing commas Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
19 lines
464 B
JavaScript
19 lines
464 B
JavaScript
require("@testing-library/jest-dom");
|
|
const calculateRank = require("../src/calculateRank");
|
|
|
|
describe("Test calculateRank", () => {
|
|
it("should calculate rank correctly", () => {
|
|
expect(
|
|
calculateRank({
|
|
totalCommits: 100,
|
|
totalRepos: 5,
|
|
followers: 100,
|
|
contributions: 61,
|
|
stargazers: 400,
|
|
prs: 300,
|
|
issues: 200,
|
|
}),
|
|
).toStrictEqual({ level: "A+", score: 49.16605417270399 });
|
|
});
|
|
});
|