feat(learn): sync master and next-curriculum branches

This commit is contained in:
Kris Koishigawa
2020-06-24 16:22:14 +09:00
committed by Mrugesh Mohapatra
parent c648a595df
commit 4f1be63055
642 changed files with 655 additions and 653 deletions

View File

@ -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;