fix(curriculum): replace meta.json with proper filename (#64972)

Co-authored-by: Dario <105294544+Dario-DC@users.noreply.github.com>
This commit is contained in:
majestic-owl448
2026-01-05 20:43:37 +01:00
committed by GitHub
parent 10eb58bec1
commit 073a20d697
+2 -2
View File
@@ -175,13 +175,13 @@ async function populateTestsForLang({ lang, challenges, meta }) {
describe(`ID: ${challenge.id}`, function () {
// Note: the title in meta.json are purely for human readability and
// do not include translations, so we do not validate against them.
it('Matches an ID in meta.json', function () {
it(`Matches an ID in ${challenge.block}.json`, function () {
const index = meta[dashedBlockName]?.challengeOrder?.findIndex(
({ id }) => id === challenge.id
);
expect(
index,
`Cannot find ID "${challenge.id}" in meta.json file for block "${dashedBlockName}"`
`Cannot find ID "${challenge.id}" in ${challenge.block}.json file for block "${dashedBlockName}"`
).toBeGreaterThanOrEqual(0);
});