Run tests in iframe displays results to user

This commit is contained in:
Berkeley Martinez
2016-05-25 18:28:20 -07:00
parent e3e9f67e40
commit 256182836a
9 changed files with 131 additions and 38 deletions

View File

@@ -60,6 +60,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
}));
}