« get me outta code hell

fix tests not targeting right module paths - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-03-21 17:36:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-03-21 17:36:04 -0300
commitb5e4efc554af05e57770a84eb4991aea43697150 (patch)
tree156dddb5e8a60f7e96f8ac7bd6246bbdc19ce27b /test
parentaecd888921f396d7bd5ec0ecce819962c9cbb664 (diff)
fix tests not targeting right module paths
Diffstat (limited to 'test')
-rw-r--r--test/cacheable-object.js2
-rw-r--r--test/data-validators.js2
-rw-r--r--test/things.js6
3 files changed, 6 insertions, 4 deletions
diff --git a/test/cacheable-object.js b/test/cacheable-object.js
index 664a648..e55a8ea 100644
--- a/test/cacheable-object.js
+++ b/test/cacheable-object.js
@@ -1,6 +1,6 @@
 import test from 'tape';
 
-import CacheableObject from '../src/data/cacheable-object.js';
+import CacheableObject from '../src/data/things/cacheable-object.js';
 
 // Utility
 
diff --git a/test/data-validators.js b/test/data-validators.js
index f13f3f0..7a2b181 100644
--- a/test/data-validators.js
+++ b/test/data-validators.js
@@ -24,7 +24,7 @@ import {
 
   // Compositional utilities
   oneOf,
-} from '../src/data/validators.js';
+} from '../src/data/things/validators.js';
 
 function test(msg, fn) {
   _test(msg, t => {
diff --git a/test/things.js b/test/things.js
index 0d74b60..fe6e33e 100644
--- a/test/things.js
+++ b/test/things.js
@@ -1,11 +1,13 @@
 import test from 'tape';
 
-import {
+import thingConstructors from '../src/data/things/index.js';
+
+const {
   Album,
   Thing,
   Track,
   TrackGroup,
-} from '../src/data/things.js';
+} = thingConstructors;
 
 function stubAlbum(tracks) {
   const album = new Album();