diff options
Diffstat (limited to 'spec/checkForAllTests.js')
-rw-r--r-- | spec/checkForAllTests.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/checkForAllTests.js b/spec/checkForAllTests.js index 99c648e..d25a6a4 100644 --- a/spec/checkForAllTests.js +++ b/spec/checkForAllTests.js @@ -2,7 +2,6 @@ const glob = require('glob') const path = require('path') glob('./spec/*/**/*.js', (err, tests) => { - if (err) { throw err } @@ -14,10 +13,13 @@ glob('./spec/*/**/*.js', (err, tests) => { files = files.map((e) => path.basename(e)) tests = tests.map((e) => path.basename(e)) - const difference = files.filter(x => !tests.includes(x)) + const difference = files.filter((x) => !tests.includes(x)) if (difference.length) { - console.error('The following files dont have a test file:\n\t' + difference.join('\n\t')) + console.error( + 'The following files dont have a test file:\n\t' + + difference.join('\n\t') + ) } else { console.info('All src files are covered by tests') } |