mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: fix/build-catalog-contents (#66911)
This commit is contained in:
@@ -34,7 +34,6 @@ describe('generateSuperBlockList', () => {
|
||||
});
|
||||
const tempSuperBlockMap = { ...superBlockStages };
|
||||
tempSuperBlockMap[SuperBlockStage.Upcoming] = [];
|
||||
tempSuperBlockMap[SuperBlockStage.Catalog] = [];
|
||||
expect(result).toHaveLength(Object.values(tempSuperBlockMap).flat().length);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -159,7 +159,8 @@ const defaultStageOrder = [
|
||||
SuperBlockStage.Extra,
|
||||
SuperBlockStage.Legacy,
|
||||
SuperBlockStage.Professional,
|
||||
SuperBlockStage.Next
|
||||
SuperBlockStage.Next,
|
||||
SuperBlockStage.Catalog
|
||||
];
|
||||
|
||||
export function getStageOrder({
|
||||
@@ -168,7 +169,7 @@ export function getStageOrder({
|
||||
const stageOrder = [...defaultStageOrder];
|
||||
|
||||
if (showUpcomingChanges) {
|
||||
stageOrder.push(SuperBlockStage.Upcoming, SuperBlockStage.Catalog);
|
||||
stageOrder.push(SuperBlockStage.Upcoming);
|
||||
}
|
||||
return stageOrder;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user