fix to conbine multiple checks

This commit is contained in:
Philipp Kunz 2015-11-28 22:34:32 +01:00
parent d79235fd2b
commit bc6715e4d2
2 changed files with 4 additions and 4 deletions

View File

@ -15,11 +15,11 @@ var CheckStorage = (function () {
this.checks.push(localCheck);
};
CheckStorage.prototype.print = function () {
var localTable = beautylog.table.new("checks");
for (var check in this.checks) {
var localTable = beautylog.table.new("checks");
localTable.push([this.checks[check].name, this.checks[check].result]);
localTable.print();
}
localTable.print();
};
return CheckStorage;
})();

View File

@ -18,10 +18,10 @@ class CheckStorage {
this.checks.push(localCheck);
}
print() {
var localTable = beautylog.table.new("checks");
for (var check in this.checks){
var localTable = beautylog.table.new("checks");
localTable.push([this.checks[check].name,this.checks[check].result]);
localTable.print();
}
localTable.print();
}
}