From a3ba5ed901fc76f42b59aca5dbf30572090c4142 Mon Sep 17 00:00:00 2001 From: nrew225 Date: Mon, 24 Oct 2016 19:39:35 -0700 Subject: [PATCH] test exit properly --- test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.js b/test.js index b38d4753..1a83fed1 100644 --- a/test.js +++ b/test.js @@ -27,10 +27,12 @@ function entryErrorCheck(md) { if (entryArray[i].pass == true) { totalPass += 1; //console.log(i + 1 + ". Pass: " + entryArray[i].name); + process.exit(0); } else { console.log("Line #" + i + 1 + ". Fail: " + entryArray[i].name); //console.log(entries[i]); totalFail += 1; + process.exit(1); } } }