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 Karashchuk
2023-10-28 22:26:31 +03:00
committed by GitHub
parent 0691084c39
commit db921818be
2 changed files with 2 additions and 2 deletions
+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.",
);
});
});