fix(tools): typo in error message (#62208)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Nithyakala Rajendran
2025-09-19 17:13:39 -07:00
committed by GitHub
parent 9f410666e6
commit ee8e750493
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ exports.getChallengesForLang = async function getChallengesForLang(
) {
const invalidLang = !curriculumLangs.includes(lang);
if (invalidLang)
throw Error(`${lang} is not a accepted language.
throw Error(`${lang} is not an accepted language.
Accepted languages are ${curriculumLangs.join(', ')}`);
return buildCurriculum(lang, filters);

View File

@@ -11,7 +11,7 @@ describe('create non-English challenge', () => {
describe('getChallengesForLang', () => {
it('throws if lang is an invalid language', async () => {
await expect(() => getChallengesForLang('notlang')).rejects.toThrow(
'notlang is not a accepted language'
'notlang is not an accepted language'
);
});
});