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

This commit is contained in:
Florian Bussmann
2021-05-07 00:31:04 +05:30
committed by GitHub
parent 7a096acf66
commit f8b0c8767e
5 changed files with 27 additions and 21 deletions
-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);