mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-26 08:03:56 -05:00
fix(tools): typo in error message (#62208)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9f410666e6
commit
ee8e750493
@@ -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);
|
||||
|
||||
@@ -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'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user