mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
test: relax challenge id uniqueness constraints (#61351)
This commit is contained in:
committed by
GitHub
parent
0d2268981c
commit
979e3ac4e6
@@ -329,13 +329,13 @@ function populateTestsForLang({ lang, challenges, meta, superBlocks }) {
|
||||
if (result.error) {
|
||||
throw new AssertionError(result.error);
|
||||
}
|
||||
const { id, title, block, dashedName } = challenge;
|
||||
const { id, block, dashedName } = challenge;
|
||||
assert.exists(
|
||||
dashedName,
|
||||
`Missing dashedName for challenge ${id} in ${block}.`
|
||||
);
|
||||
const pathAndTitle = `${block}/${dashedName}`;
|
||||
const idVerificationMessage = mongoIds.check(id, title);
|
||||
const idVerificationMessage = mongoIds.check(id, block);
|
||||
assert.isNull(idVerificationMessage, idVerificationMessage);
|
||||
const dupeTitleCheck = challengeTitles.check(
|
||||
dashedName,
|
||||
|
||||
+10
-1586
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user