summaryrefslogtreecommitdiff
path: root/test/lint/global-declarations.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-08-09 21:00:37 -0400
committerGitHub <noreply@github.com>2020-08-09 21:00:37 -0400
commit7b1838a282f4ac5c50e0ea36122751c3454266aa (patch)
tree1fb73929e4ce6ae23842027f45d305335632c351 /test/lint/global-declarations.js
parent486d44f7197a2dedc5ea487345e598c668d47638 (diff)
Create dev utility class for some shared functionality (#724)
Diffstat (limited to 'test/lint/global-declarations.js')
-rw-r--r--test/lint/global-declarations.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lint/global-declarations.js b/test/lint/global-declarations.js
index 2fc9a5e2..355cb64a 100644
--- a/test/lint/global-declarations.js
+++ b/test/lint/global-declarations.js
@@ -19,7 +19,7 @@
const fs = require('fs');
const path = require('path');
const assert = require('assert');
-const {getAllFiles} = require('../yomichan-test');
+const {getAllFiles} = require('../../dev/yomichan-util');
function countOccurences(string, pattern) {
@@ -116,7 +116,7 @@ function main() {
const directory = path.resolve(__dirname, '..', '..', 'ext');
const pattern = /\.js$/;
const ignorePattern = /[\\/]ext[\\/]mixed[\\/]lib[\\/]/;
- const fileNames = getAllFiles(directory, (f) => pattern.test(f) && !ignorePattern.test(f));
+ const fileNames = getAllFiles(directory, null, (f) => pattern.test(f) && !ignorePattern.test(f));
for (const fileName of fileNames) {
if (!validateGlobals(fileName, fix)) {
process.exit(-1);