From ef8acc5d50fa3c23bd7c9d4bb720b7ff78581981 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 19 Aug 2023 14:13:31 -0300 Subject: clean up imports & miscellaneous metastructures across codebase --- data-tests/index.js | 28 +++++++++------------------- data-tests/test-order-of-album-groups.js | 4 ++-- 2 files changed, 11 insertions(+), 21 deletions(-) (limited to 'data-tests') 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)}`) } } -- cgit 1.3.0-6-gf8a5