diff --git a/seed/challenges/03-back-end-development-certification/automated-testing-and-debugging.json b/seed/challenges/03-back-end-development-certification/automated-testing-and-debugging.json index a272a358df..fab459adc4 100644 --- a/seed/challenges/03-back-end-development-certification/automated-testing-and-debugging.json +++ b/seed/challenges/03-back-end-development-certification/automated-testing-and-debugging.json @@ -52,7 +52,7 @@ "assert(code.match(/console\\.log\\(typeof[\\( ][\"'].*[\"']\\)?\\);/), 'message: You should console.log the typeof a string.');", "assert(code.match(/console\\.log\\(typeof[\\( ]\\d+\\.?\\d*\\)?\\);/), 'message: You should console.log the typeof a number.');", "assert(code.match(/console\\.log\\(typeof[\\( ]\\[\\]\\)?\\);/), 'message: You should console.log the typeof an array.');", - "assert(code.match(/console\\.log\\(typeof[\\( ]\\{\\}\\)?\\);/), 'message: You should console.log the typeof a object.');" + "assert(code.match(/console\\.log\\(typeof[\\( ]\\{\\}\\)?\\);/), 'message: You should console.log the typeof an object.');" ], "type": "waypoint", "challengeType": 1, diff --git a/server/boot/challenge.js b/server/boot/challenge.js index cd8d38c2d5..aa8938e6df 100644 --- a/server/boot/challenge.js +++ b/server/boot/challenge.js @@ -526,7 +526,7 @@ module.exports = function(app) { } function completedChallenge(req, res, next) { - req.checkBody('id', 'id must be a ObjectId').isMongoId(); + req.checkBody('id', 'id must be an ObjectId').isMongoId(); req.checkBody('name', 'name must be at least 3 characters') .isString() .isLength({ min: 3 });