Add block scoping to challenges url

This commit is contained in:
Berkeley Martinez
2016-06-09 16:02:51 -07:00
parent 91dc3625d9
commit acf4d99f67
15 changed files with 139 additions and 45 deletions

View File

@@ -61,7 +61,7 @@ export function getFileKey({ challengeType }) {
export function createTests({ tests = [] }) {
return tests
.map(test => ({
text: test.split('message: ').pop().replace(/\'\);/g, ''),
text: ('' + test).split('message: ').pop().replace(/\'\);/g, ''),
testString: test
}));
}