Properly display tests

This commit is contained in:
Berkeley Martinez
2015-11-21 14:44:33 -08:00
parent 4a7470f658
commit 7593dc4e1b
5 changed files with 9 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ window.common = (function({ common = { init: [] }}) {
common.addTestsToString = function({ code, tests = [], ...rest }) {
const userTests = [];
code = tests.reduce((code, test) => '\n' + code + test, code);
code = tests.reduce((code, test) => code + test + '\n', code + '\n');
var counter = 0;
var match = BDDregex.exec(code);