feat(learn): sync master and next-curriculum branches
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
c648a595df
commit
4f1be63055
@ -283,9 +283,11 @@ function populateTestsForLang({ lang, challenges, meta }) {
|
||||
if (challenge.challengeType !== 7 && invalidBlock) {
|
||||
throw new Error(invalidBlock);
|
||||
}
|
||||
const { id, title } = challenge;
|
||||
const { id, title, block, dashedName } = challenge;
|
||||
const dashedBlock = dasherize(block);
|
||||
const pathAndTitle = `${dashedBlock}/${dashedName}`;
|
||||
mongoIds.check(id, title);
|
||||
challengeTitles.check(title);
|
||||
challengeTitles.check(title, pathAndTitle);
|
||||
});
|
||||
|
||||
const { challengeType } = challenge;
|
||||
|
Reference in New Issue
Block a user