diff options
author | n8225 <n8225@users.noreply.github.com> | 2019-08-21 12:06:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 12:06:14 +0000 |
commit | d4775396366db8739edc49cbd1c56944c2322e2f (patch) | |
tree | 0d5624066ef307a0a99d22abcb4e09b9caecca29 /tests/test.js | |
parent | revert wrong branch merge (diff) | |
parent | Fix travis (diff) | |
download | awesome-selfhosted-d4775396366db8739edc49cbd1c56944c2322e2f.tar.gz awesome-selfhosted-d4775396366db8739edc49cbd1c56944c2322e2f.zip |
Merge pull request #1778 from Kickball/travis_fix
Remove danger
Adjust Travis to test temp.md on or and README.md on build.
Diffstat (limited to 'tests/test.js')
-rw-r--r-- | tests/test.js | 6 |
1 files changed, 4 insertions, 2 deletions
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); |