Skip to content

best way to save what you love

refactor: create `util` directory, move tests to it

dumbmoron9e09bcab6ea1
diff --git a/package.json b/package.json
index 72104aba..52640702 100644
--- a/package.json
+++ b/package.json
@@ -11,9 +11,9 @@
"scripts": {
"start": "node src/cobalt",
"setup": "node src/modules/setup",
- "test": "node src/test/test",
+ "test": "node src/util/test",
"build": "node src/modules/buildStatic",
- "testFilenames": "node src/test/testFilenamePresets"
+ "testFilenames": "node src/util/testFilenamePresets"
},
"repository": {
"type": "git",
diff --git a/src/test/test.js b/src/util/test.js
similarity index 98%
rename from src/test/test.js
rename to src/util/test.js
index f26f3b95..294ff7e7 100644
--- a/src/test/test.js
+++ b/src/util/test.js
@@ -9,7 +9,7 @@ import { normalizeRequest } from "../modules/processing/request.js";
import { env } from "../modules/config.js";
env.apiURL = 'http://localhost:9000'
-let tests = loadJSON('./src/test/tests.json');
+let tests = loadJSON('./src/util/tests.json');
let noTest = [];
let failed = [];
diff --git a/src/test/testFilenamePresets.js b/src/util/testFilenamePresets.js
similarity index 100%
rename from src/test/testFilenamePresets.js
rename to src/util/testFilenamePresets.js
diff --git a/src/test/tests.json b/src/util/tests.json
similarity index 100%
rename from src/test/tests.json
rename to src/util/tests.json