Skip to content

Commit 979e3ac

Browse files
test: relax challenge id uniqueness constraints (freeCodeCamp#61351)
1 parent 0d22689 commit 979e3ac

2 files changed

Lines changed: 12 additions & 1588 deletions

File tree

curriculum/test/test-challenges.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ function populateTestsForLang({ lang, challenges, meta, superBlocks }) {
329329
if (result.error) {
330330
throw new AssertionError(result.error);
331331
}
332-
const { id, title, block, dashedName } = challenge;
332+
const { id, block, dashedName } = challenge;
333333
assert.exists(
334334
dashedName,
335335
`Missing dashedName for challenge ${id} in ${block}.`
336336
);
337337
const pathAndTitle = `${block}/${dashedName}`;
338-
const idVerificationMessage = mongoIds.check(id, title);
338+
const idVerificationMessage = mongoIds.check(id, block);
339339
assert.isNull(idVerificationMessage, idVerificationMessage);
340340
const dupeTitleCheck = challengeTitles.check(
341341
dashedName,

0 commit comments

Comments
 (0)