« get me outta code hell

data, test: refactor utilities into own file - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-01 17:01:21 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-01 17:04:16 -0300
commitab7591e45e7e31b4e2c0e2f81e224672145993fa (patch)
tree11dcccc57e71424baa3b73a3eca58dabc56dca05 /test/unit/data
parentdfcf911501211bbfc64b8ce6a964b70c6406447f (diff)
data, test: refactor utilities into own file
Primarily for more precies test coverage mapping, but also to make
navigation a bit easier and consolidate complex functions with
lots of imports out of the same space as other, more simple or
otherwise specialized files.
Diffstat (limited to 'test/unit/data')
-rw-r--r--test/unit/data/composite/control-flow/exposeConstant.js (renamed from test/unit/data/composite/common-utilities/exposeConstant.js)8
-rw-r--r--test/unit/data/composite/control-flow/exposeDependency.js (renamed from test/unit/data/composite/common-utilities/exposeDependency.js)8
-rw-r--r--test/unit/data/composite/control-flow/withResultOfAvailabilityCheck.js (renamed from test/unit/data/composite/common-utilities/withResultOfAvailabilityCheck.js)8
-rw-r--r--test/unit/data/composite/data/withPropertiesFromObject.js (renamed from test/unit/data/composite/common-utilities/withPropertiesFromObject.js)9
-rw-r--r--test/unit/data/composite/data/withPropertyFromObject.js (renamed from test/unit/data/composite/common-utilities/withPropertyFromObject.js)9
5 files changed, 12 insertions, 30 deletions
diff --git a/test/unit/data/composite/common-utilities/exposeConstant.js b/test/unit/data/composite/control-flow/exposeConstant.js
index bfed0951..0c75894b 100644
--- a/test/unit/data/composite/common-utilities/exposeConstant.js
+++ b/test/unit/data/composite/control-flow/exposeConstant.js
@@ -1,11 +1,7 @@
 import t from 'tap';
 
-import {
-  compositeFrom,
-  continuationSymbol,
-  exposeConstant,
-  input,
-} from '#composite';
+import {compositeFrom, continuationSymbol, input} from '#composite';
+import {exposeConstant} from '#composite/control-flow';
 
 t.test(`exposeConstant: basic behavior`, t => {
   t.plan(2);
diff --git a/test/unit/data/composite/common-utilities/exposeDependency.js b/test/unit/data/composite/control-flow/exposeDependency.js
index 4f07cc16..8f6bfd01 100644
--- a/test/unit/data/composite/common-utilities/exposeDependency.js
+++ b/test/unit/data/composite/control-flow/exposeDependency.js
@@ -1,11 +1,7 @@
 import t from 'tap';
 
-import {
-  compositeFrom,
-  continuationSymbol,
-  exposeDependency,
-  input,
-} from '#composite';
+import {compositeFrom, continuationSymbol, input} from '#composite';
+import {exposeDependency} from '#composite/control-flow';
 
 t.test(`exposeDependency: basic behavior`, t => {
   t.plan(4);
diff --git a/test/unit/data/composite/common-utilities/withResultOfAvailabilityCheck.js b/test/unit/data/composite/control-flow/withResultOfAvailabilityCheck.js
index 50c127d3..4c4be04a 100644
--- a/test/unit/data/composite/common-utilities/withResultOfAvailabilityCheck.js
+++ b/test/unit/data/composite/control-flow/withResultOfAvailabilityCheck.js
@@ -1,11 +1,7 @@
 import t from 'tap';
 
-import {
-  compositeFrom,
-  continuationSymbol,
-  input,
-  withResultOfAvailabilityCheck,
-} from '#composite';
+import {compositeFrom, continuationSymbol, input} from '#composite';
+import {withResultOfAvailabilityCheck} from '#composite/control-flow';
 
 const composite = compositeFrom({
   compose: false,
diff --git a/test/unit/data/composite/common-utilities/withPropertiesFromObject.js b/test/unit/data/composite/data/withPropertiesFromObject.js
index 3431382e..ead1b9b2 100644
--- a/test/unit/data/composite/common-utilities/withPropertiesFromObject.js
+++ b/test/unit/data/composite/data/withPropertiesFromObject.js
@@ -1,11 +1,8 @@
 import t from 'tap';
 
-import {
-  compositeFrom,
-  exposeDependency,
-  input,
-  withPropertiesFromObject,
-} from '#composite';
+import {compositeFrom, input} from '#composite';
+import {exposeDependency} from '#composite/control-flow';
+import {withPropertiesFromObject} from '#composite/data';
 
 const composite = compositeFrom({
   compose: false,
diff --git a/test/unit/data/composite/common-utilities/withPropertyFromObject.js b/test/unit/data/composite/data/withPropertyFromObject.js
index 11487226..6a772c36 100644
--- a/test/unit/data/composite/common-utilities/withPropertyFromObject.js
+++ b/test/unit/data/composite/data/withPropertyFromObject.js
@@ -1,11 +1,8 @@
 import t from 'tap';
 
-import {
-  compositeFrom,
-  exposeDependency,
-  input,
-  withPropertyFromObject,
-} from '#composite';
+import {compositeFrom, input} from '#composite';
+import {exposeDependency} from '#composite/control-flow';
+import {withPropertyFromObject} from '#composite/data';
 
 t.test(`withPropertyFromObject: basic behavior`, t => {
   t.plan(4);