aboutsummaryrefslogtreecommitdiffstats
path: root/spec/checkForAllTests.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-06-13 01:43:37 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-06-13 01:43:37 +0200
commit03322672782a6318b019eff33fe44ec800d6f12c (patch)
tree9d807e1585cf28a1ea98e87b855932dba00f1880 /spec/checkForAllTests.js
parent8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff)
downloadsvg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz
svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip
dependency updates, easier formatting
Diffstat (limited to 'spec/checkForAllTests.js')
-rw-r--r--spec/checkForAllTests.js8
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')
}