fix: langs_count overflow when hide is set (#989)

This commit is contained in:
Florian Bussmann authored and GitHub committed 2021-05-07 00:31:04 +05:30
1 parent 7a096acf66
commit f8b0c8767e
5 files changed
+27 -21

No files matched your search

-13
View File
@@ -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);