Browse Source

test exit properly

pull/830/head
nrew225 8 years ago
parent
commit
a3ba5ed901
  1. 2
      test.js

2
test.js

@ -27,10 +27,12 @@ function entryErrorCheck(md) {
if (entryArray[i].pass == true) { if (entryArray[i].pass == true) {
totalPass += 1; totalPass += 1;
//console.log(i + 1 + ". Pass: " + entryArray[i].name); //console.log(i + 1 + ". Pass: " + entryArray[i].name);
process.exit(0);
} else { } else {
console.log("Line #" + i + 1 + ". Fail: " + entryArray[i].name); console.log("Line #" + i + 1 + ". Fail: " + entryArray[i].name);
//console.log(entries[i]); //console.log(entries[i]);
totalFail += 1; totalFail += 1;
process.exit(1);
} }
} }
} }

Loading…
Cancel
Save