diff --git a/client/src/client/workers/test-evaluator.js b/client/src/client/workers/test-evaluator.js index f08af9fe2f..99452977e5 100644 --- a/client/src/client/workers/test-evaluator.js +++ b/client/src/client/workers/test-evaluator.js @@ -70,13 +70,11 @@ self.onmessage = async e => { try { // Logging is proxyed after the build to catch console.log messages // generated during testing. - testResult = eval(` - ${e.data.build} - __utils.flushLogs(); - __userCodeWasExecuted = true; - __utils.toggleProxyLogger(true); - ${e.data.testString} - `); + testResult = eval(`${e.data.build} +__utils.flushLogs(); +__userCodeWasExecuted = true; +__utils.toggleProxyLogger(true); +${e.data.testString}`); } catch (err) { if (__userCodeWasExecuted) { // rethrow error, since test failed.