Skip to content

Commit

Permalink
fix(top langs fetcher): fix typo inside error message (anuraghazra#3431)
Browse files Browse the repository at this point in the history
* Update top-languages-fetcher.js

* Update fetchTopLanguages.test.js

---------

Co-authored-by: Alexandr Garbuzov <[email protected]>
  • Loading branch information
eternityduck and qwerty541 authored Oct 28, 2023
1 parent 0691084 commit db92181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fetchers/top-languages-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/fetchTopLanguages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
);
});
});

0 comments on commit db92181

Please sign in to comment.