mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-08-11 02:22:46 +00:00
fix: langs_count overflow when hide is set (#989)
This commit is contained in:
@@ -74,19 +74,6 @@ describe("FetchTopLanguages", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("should fetch langs with specified langs_count", async () => {
|
||||
mock.onPost("https://api.github.com/graphql").reply(200, data_langs);
|
||||
|
||||
let repo = await fetchTopLanguages("anuraghazra", 1);
|
||||
expect(repo).toStrictEqual({
|
||||
javascript: {
|
||||
color: "#0ff",
|
||||
name: "javascript",
|
||||
size: 200,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it("should throw error", async () => {
|
||||
mock.onPost("https://api.github.com/graphql").reply(200, error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user