2 Commits

Author SHA1 Message Date
23e2a0f7a7 0.0.2 2015-11-28 22:34:41 +01:00
bc6715e4d2 fix to conbine multiple checks 2015-11-28 22:34:32 +01:00
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "smartcheck", "name": "smartcheck",
"version": "0.0.1", "version": "0.0.2",
"description": "Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory.", "description": "Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

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