mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(external-curriculum): add full-stack cert to external curriculum (#59395)
This commit is contained in:
@@ -81,13 +81,7 @@ ${result.error.message}`);
|
||||
({ dashedName }) => dashedName
|
||||
);
|
||||
|
||||
const isUpcoming = ['full-stack-developer'];
|
||||
|
||||
// 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 => !isUpcoming.includes(x)
|
||||
);
|
||||
const publicSuperBlockNames = Object.values(SuperBlocks);
|
||||
|
||||
expect(dashedNames).toEqual(expect.arrayContaining(publicSuperBlockNames));
|
||||
expect(Object.keys(orderedSuperBlockInfo)).toHaveLength(
|
||||
|
||||
@@ -43,6 +43,7 @@ export const orderedSuperBlockInfo = [
|
||||
{ dashedName: SuperBlocks.TheOdinProject, public: true },
|
||||
{ dashedName: SuperBlocks.RespWebDesign, public: true },
|
||||
{ dashedName: SuperBlocks.PythonForEverybody, public: true },
|
||||
{ dashedName: SuperBlocks.FullStackDeveloper, public: false },
|
||||
{ dashedName: SuperBlocks.JsAlgoDataStructNew, public: false },
|
||||
{ dashedName: SuperBlocks.FrontEndDevLibs, public: false },
|
||||
{ dashedName: SuperBlocks.DataVis, public: false },
|
||||
|
||||
@@ -25,6 +25,14 @@ const blockSchema = Joi.object({}).keys({
|
||||
required: Joi.array(),
|
||||
superBlock: Joi.string(),
|
||||
blockLayout: Joi.string(),
|
||||
blockType: Joi.valid(
|
||||
'lecture',
|
||||
'workshop',
|
||||
'lab',
|
||||
'review',
|
||||
'quiz',
|
||||
'exam'
|
||||
),
|
||||
challengeOrder: Joi.array().items(
|
||||
Joi.object({}).keys({
|
||||
id: Joi.string(),
|
||||
|
||||
Reference in New Issue
Block a user