« get me outta code hell

clean up imports & miscellaneous metastructures across codebase - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/data-tests
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-19 14:13:31 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-19 14:13:31 -0300
commitef8acc5d50fa3c23bd7c9d4bb720b7ff78581981 (patch)
tree6c061e3771cb47619ce9163b559053504a000641 /data-tests
parent37ef3f288fce9bd65a2cd86107239e22f977e78d (diff)
clean up imports & miscellaneous metastructures across codebase
Diffstat (limited to 'data-tests')
-rw-r--r--data-tests/index.js28
-rw-r--r--data-tests/test-order-of-album-groups.js4
2 files changed, 11 insertions, 21 deletions
diff --git a/data-tests/index.js b/data-tests/index.js
index 1b9ec990..b05de9ed 100644
--- a/data-tests/index.js
+++ b/data-tests/index.js
@@ -1,23 +1,13 @@
+import * as path from 'node:path';
+import {fileURLToPath} from 'node:url';
+
 import chokidar from 'chokidar';
-import * as path from 'path';
-import {fileURLToPath} from 'url';
-
-import {quickLoadAllFromYAML} from '../../src/data/yaml.js';
-import {isMain} from '../../src/util/node-utils.js';
-import {getContextAssignments} from '../../src/repl.js';
-
-import {
-  color,
-  logError,
-  logInfo,
-  logWarn,
-  parseOptions,
-} from '../../src/util/cli.js';
-
-import {
-  bindOpts,
-  showAggregate,
-} from '../../src/util/sugar.js';
+
+import {color, logError, logInfo, logWarn, parseOptions} from '#cli';
+import {isMain} from '#node-utils';
+import {getContextAssignments} from '#repl';
+import {bindOpts, showAggregate} from '#sugar';
+import {quickLoadAllFromYAML} from '#yaml';
 
 async function main() {
   const miscOptions = await parseOptions(process.argv.slice(2), {
diff --git a/data-tests/test-order-of-album-groups.js b/data-tests/test-order-of-album-groups.js
index de2fcbed..57500e33 100644
--- a/data-tests/test-order-of-album-groups.js
+++ b/data-tests/test-order-of-album-groups.js
@@ -1,4 +1,4 @@
-import * as util from 'util';
+import {inspect} from 'node:util';
 
 export default function({
   albumData,
@@ -38,7 +38,7 @@ export default function({
   for (const album of badAlbums) {
     console.log('-', album);
     for (const group of album.groups) {
-      console.log(`  - ${util.inspect(group)}`)
+      console.log(`  - ${inspect(group)}`)
     }
   }