15 lines
324 B
TypeScript
15 lines
324 B
TypeScript
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",
|
|
]);
|
|
});
|