fix to conbine multiple checks
This commit is contained in:
parent
d79235fd2b
commit
bc6715e4d2
4
index.js
4
index.js
@ -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;
|
||||
})();
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user