Fix error logic and output display

This commit is contained in:
Berkeley Martinez
2015-11-24 15:12:54 -08:00
parent 04db6744b9
commit da67e77fad
2 changed files with 18 additions and 9 deletions

View File

@ -57,12 +57,12 @@ window.common = (function(global) {
// js challenge
// remove comments and add tests to string
return common.addTestsToString(Object.assign(
return Observable.just(common.addTestsToString(Object.assign(
{
code: common.removeComments(code),
tests: common.tests.slice()
}
))
)))
.flatMap(common.detectLoops$)
.flatMap(({ err, code, data, userTests }) => {
if (err) {