🚀 add getGithubUserContribution
This commit is contained in:
@@ -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",
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user