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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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,
);
}

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.",
);
});
});