diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
commit | 03322672782a6318b019eff33fe44ec800d6f12c (patch) | |
tree | 9d807e1585cf28a1ea98e87b855932dba00f1880 /spec/checkForAllTests.js | |
parent | 8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff) | |
download | svg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip |
dependency updates, easier formatting
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') } |