From 51f0e1d1ffb6d1f0157a62182e62add230bf0612 Mon Sep 17 00:00:00 2001 From: n8225 Date: Sat, 17 Aug 2019 11:47:31 -0500 Subject: Remove Danger and update travis --- tests/test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/test.js') diff --git a/tests/test.js b/tests/test.js index 94e7798c..ee3867e8 100644 --- a/tests/test.js +++ b/tests/test.js @@ -4,7 +4,7 @@ const fs = require('fs'); let log = '{\n'; let issuelog = ' "message": "#### Syntax Issues\\n\\n Name | Entry\\n----|----------------------\\n'; - +let fails = '' const file = fs.readFileSync(process.argv[2], 'utf8'); // Reads argv into var file function entryFilter(md) { // Function to find lines with entries @@ -66,11 +66,13 @@ function entryErrorCheck(md) { // entryArray[i].error = findError(entries[i]) //WIP totalFail += 1; issuelog += `${entryArray[i].name} | ${entries[i]} \\n`; + fails += `${entries[i]} \n\n`; } } } if (totalFail > 0) { // Logs # passed & failed to console, and failures to syntaxcheck.json - console.log(`${totalFail} Failed, ${totalPass} Passed, of ${total}`); + console.log(`${totalFail} Failed, ${totalPass} Passed, of ${total}\n-----------------------------`); + console.log(fails) log += ` "error": true,\n "title": "Found ${totalFail} entries with syntax error(s).",\n`; fs.writeFileSync('syntaxcheck.json', `${log} ${issuelog} "\n}`); process.exit(1); -- cgit v1.2.3 From e59fb697421086d21b3772f10508abe52aec5b5f Mon Sep 17 00:00:00 2001 From: n8225 Date: Wed, 21 Aug 2019 17:30:28 -0500 Subject: Update test.js --- tests/test.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test.js') diff --git a/tests/test.js b/tests/test.js index ee3867e8..6516ab07 100644 --- a/tests/test.js +++ b/tests/test.js @@ -52,6 +52,10 @@ function entryErrorCheck(md) { let totalPass = 0; let total = 0; const entryArray = []; + if (entries[0] === "") { + console.log("0 Entries") + process.exit(0) + } for (let i = 0, len = entries.length; i < len; i += 1) { // Loop to create array of objects entryArray[i] = new Object; entryArray[i].raw = entries[i]; -- cgit v1.2.3