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

@ -1,7 +1,10 @@
const crypto = require('crypto');
function createChallengeNode(challenge, reporter) {
if (typeof challenge.description[0] !== 'string') {
if (
typeof challenge.description[0] !== 'string' &&
challenge.challengeType !== 11
) {
reporter.warn(`
${challenge.title} has a description that will break things!