fix(top langs fetcher): fix typo inside error message (#3431)

* Update top-languages-fetcher.js

* Update fetchTopLanguages.test.js

---------

Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
This commit is contained in:
Bohdan KarashchukandAlexandr Garbuzov authored and GitHub committed 2023-10-28 22:26:31 +03:00
1 parent 0691084c39
commit db921818be
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ const fetchTopLanguages = async (
);
}
throw new CustomError(
"Something went while trying to retrieve the language data using the GraphQL API.",
"Something went wrong while trying to retrieve the language data using the GraphQL API.",
CustomError.GRAPHQL_ERROR,
);
}
+1 -1
View File
@@ -165,7 +165,7 @@ describe("FetchTopLanguages", () => {
});
await expect(fetchTopLanguages("anuraghazra")).rejects.toThrow(
"Something went while trying to retrieve the language data using the GraphQL API.",
"Something went wrong while trying to retrieve the language data using the GraphQL API.",
);
});
});