mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat: transfer The Odin Project to its own superblock (#49202)
* feat: the odin-project superblock * feat: break everything * fix: correct meta names * fix: meta again * fix: tests * fix: help category and external curriculum test * fix: file names again * fix: help category * fix: remove console log --------- Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -82,10 +82,16 @@ if (envData.clientLocale == 'english' && !envData.showUpcomingChanges) {
|
||||
const dashedNames = orderedSuperBlockInfo.map(
|
||||
({ dashedName }) => dashedName
|
||||
);
|
||||
|
||||
const isUpcoming = [
|
||||
'2022/javascript-algorithms-and-data-structures',
|
||||
'the-odin-project'
|
||||
];
|
||||
|
||||
// TODO: this is a hack, we should have a single source of truth for the
|
||||
// list of superblocks that are available.
|
||||
const publicSuperBlockNames = Object.values(SuperBlocks).filter(
|
||||
x => x !== '2022/javascript-algorithms-and-data-structures'
|
||||
x => !isUpcoming.includes(x)
|
||||
);
|
||||
|
||||
expect(dashedNames).toEqual(
|
||||
|
||||
Reference in New Issue
Block a user