diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index a5616d8def..b72133c822 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -803,7 +803,7 @@ "assert(convert(20) === 68, 'message: convert(20) should return a value of 68');", "assert(convert(30) === 86, 'message: convert(30) should return a value of 86');" ], - "type": "waypoint", + "type": "checkpoint", "challengeType": "1", "nameCn": "", "nameFr": "", @@ -1410,7 +1410,7 @@ "assert(/\\bdog\\b/.test(test1) && /\\bbig\\b/.test(test1) && /\\bran\\b/.test(test1) && /\\bquickly\\b/.test(test1),'message: wordBlanks(\"dog\", \"big\", \"ran\", \"quickly\") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).');", "assert(/\\bcat\\b/.test(test2) && /\\blittle\\b/.test(test2) && /\\bhit\\b/.test(test2) && /\\bslowly\\b/.test(test2),'message: wordBlanks(\"cat\", \"little\", \"hit\", \"slowly\") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).');" ], - "type": "waypoint", + "type": "checkpoint", "challengeType": "1", "nameCn": "", "nameFr": "", @@ -1775,7 +1775,7 @@ "assert(hasNumber, 'message: The second elements in each of your sub-arrays must all be numbers');", "assert(count > 4, 'message: You must have at least 5 items in your list');" ], - "type": "waypoint", + "type": "checkpoint", "challengeType": "1", "nameCn": "", "nameFr": "", @@ -2222,7 +2222,7 @@ "assert(queue([2],1) === 2, 'message: queue([2], 1) should return 2');", "queue(myArr, 10); assert(myArr[4] === 10, 'message: After queue(myArr, 10), myArr[4] should be 10');" ], - "type": "waypoint", + "type": "checkpoint", "challengeType": "1", "nameCn": "", "nameFr": "", @@ -2936,7 +2936,7 @@ "assert(golfScore(4, 7) === \"Go Home!\", 'message: golfScore(4, 7) should return \"Go Home!\"');", "assert(golfScore(5, 9) === \"Go Home!\", 'message: golfScore(5, 9) should return \"Go Home!\"');" ], - "type": "waypoint", + "type": "checkpoint", "challengeType": "1", "nameCn": "", "nameFr": "", @@ -3278,7 +3278,7 @@ "assert((function(){ count = 0; cc(10);cc('J');cc('Q');cc('K');var out = cc('A'); if(out === \"-5 Hold\") {return true;} return false; })(), 'message: Cards Sequence 10, J, Q, K, A should return \"-5 Hold\"');", "assert((function(){ count = 0; cc(3);cc(2);cc('A');cc(10);var out = cc('K'); if(out === \"-1 Hold\") {return true;} return false; })(), 'message: Cards Sequence 3, 2, A, 10, K should return \"-1 Hold\"');" ], - "type": "waypoint", + "type": "checkpoint", "challengeType": "1", "nameCn": "", "nameFr": "", @@ -3954,7 +3954,7 @@ "assert(update(1245, \"tracks\", \"Addicted to Love\")[1245][\"tracks\"].length === 1, 'message: After update(1245, \"tracks\", \"Addicted to Love\"), tracks should have a length of 1');", "update(2548, \"tracks\", \"\"); assert(!collection[2548].hasOwnProperty(\"tracks\"), 'message: After update(2548, \"tracks\", \"\"), tracks should not be set');" ], - "type": "waypoint", + "type": "checkpoint", "challengeType": "1", "nameCn": "", "nameFr": "", diff --git a/server/boot/challenge.js b/server/boot/challenge.js index f23a41c2be..63234e4bd4 100644 --- a/server/boot/challenge.js +++ b/server/boot/challenge.js @@ -29,7 +29,7 @@ import getFromDisk$ from '../utils/getFromDisk$'; const isDev = process.env.NODE_ENV !== 'production'; const isBeta = !!process.env.BETA; const debug = debugFactory('freecc:challenges'); -const challengesRegex = /^(bonfire|waypoint|zipline|basejump)/i; +const challengesRegex = /^(bonfire|waypoint|zipline|basejump|checkpoint)/i; const firstChallenge = 'waypoint-learn-how-free-code-camp-works'; const challengeView = { 0: 'coursewares/showHTML',