Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
23e2a0f7a7 | |||
bc6715e4d2 |
4
index.js
4
index.js
@ -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;
|
||||||
})();
|
})();
|
||||||
|
@ -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": {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
Reference in New Issue
Block a user