forked from mirrored/github-readme-stats
* Remove jest-bench dependency and use custom solutions * review * Update tests/bench/calculateRank.bench.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Alexandr <qwerty541zxc@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
import { calculateRank } from "../../src/calculateRank.js";
|
|
import { it } from "@jest/globals";
|
|
import { runAndLogStats } from "./utils.js";
|
|
|
|
it("calculateRank", async () => {
|
|
await runAndLogStats("calculateRank", () => {
|
|
calculateRank({
|
|
all_commits: false,
|
|
commits: 1300,
|
|
prs: 1500,
|
|
issues: 4500,
|
|
reviews: 1000,
|
|
repos: 0,
|
|
stars: 600000,
|
|
followers: 50000,
|
|
});
|
|
});
|
|
});
|