mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-30 14:08:14 +08:00
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:
parent
0691084c39
commit
db921818be
@ -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,
|
||||
);
|
||||
}
|
||||
|
@ -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.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user