diff --git a/common/app/routes/challenges/utils.js b/common/app/routes/challenges/utils.js index 1743c52d08..c73b88837e 100644 --- a/common/app/routes/challenges/utils.js +++ b/common/app/routes/challenges/utils.js @@ -36,7 +36,7 @@ export function getFileKey({ challengeType }) { export function createTests({ tests = [] }) { return tests .map(test => { - if (typeof tests === 'string') { + if (typeof test === 'string') { return { text: ('' + test).split('message: ').pop().replace(/\'\);/g, ''), testString: test