🚀 add getGithubUserContribution

This commit is contained in:
platane
2020-07-19 17:28:12 +02:00
parent 97429e3d27
commit 7c240b219b
3 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { getGithubUserContribution } from "..";
it("should get user contribution", async () => {
const { cells, colorScheme } = await getGithubUserContribution("platane");
expect(cells).toBeDefined();
expect(colorScheme).toEqual([
"#ebedf0",
"#9be9a8",
"#40c463",
"#30a14e",
"#216e39",
]);
});