fix(learn): tests for python video lessons (#38600)

* fix: improve tests for video challenges

* fix: remove unused challenges + get rid of no description warning

* fix: remove non-existent challenges from meta
This commit is contained in:
Tom
2020-04-21 17:19:22 -05:00
committed by Mrugesh Mohapatra
parent 03c9e47be9
commit 379f6f89ca
5 changed files with 11 additions and 58 deletions

View File

@ -15,7 +15,7 @@ function getSchemaForLang(lang) {
checksum: Joi.number(),
dashedName: Joi.string(),
description: Joi.when('challengeType', {
is: challengeTypes.step,
is: Joi.only([challengeTypes.step, challengeTypes.video]),
then: Joi.string().allow(''),
otherwise: Joi.string().required()
}),
@ -41,6 +41,7 @@ function getSchemaForLang(lang) {
),
guideUrl: Joi.string().uri({ scheme: 'https' }),
videoUrl: Joi.string().allow(''),
videoId: Joi.string(),
forumTopicId: Joi.number(),
helpRoom: Joi.string(),
id: Joi.objectId().required(),