« get me outta code hell

test: various error whitespace cleanup - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit/data/composite/common-utilities/withPropertiesFromObject.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-30 19:22:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-30 19:23:16 -0300
commit902ebbafb7cfb56f7a878d33cf94e5708861ff4a (patch)
tree3d56d8942285b3a20cba0583779e5a5f396c9a81 /test/unit/data/composite/common-utilities/withPropertiesFromObject.js
parent9b9aa750297a220d76b6602e1e23c891e50986d4 (diff)
test: various error whitespace cleanup
Diffstat (limited to 'test/unit/data/composite/common-utilities/withPropertiesFromObject.js')
-rw-r--r--test/unit/data/composite/common-utilities/withPropertiesFromObject.js26
1 files changed, 10 insertions, 16 deletions
diff --git a/test/unit/data/composite/common-utilities/withPropertiesFromObject.js b/test/unit/data/composite/common-utilities/withPropertiesFromObject.js
index b1b8be7a..835767cb 100644
--- a/test/unit/data/composite/common-utilities/withPropertiesFromObject.js
+++ b/test/unit/data/composite/common-utilities/withPropertiesFromObject.js
@@ -185,12 +185,9 @@ t.test(`withPropertiesFromObject: validate static inputs`, t => {
 
   t.throws(
     () => withPropertiesFromObject({}),
-    {
-      message: `Errors in input options passed to withPropertiesFromObject`,
-      errors: [
-        {message: `Required these inputs: object, properties`},
-      ],
-    });
+    {message: `Errors in input options passed to withPropertiesFromObject`, errors: [
+      {message: `Required these inputs: object, properties`},
+    ]});
 
   t.throws(
     () => withPropertiesFromObject({
@@ -198,14 +195,11 @@ t.test(`withPropertiesFromObject: validate static inputs`, t => {
       properties: input.value('very'),
       prefix: input.value({yes: 'yup'}),
     }),
-    {
-      message: `Errors in input options passed to withPropertiesFromObject`,
-      errors: [
-        {message: `object: Expected an object, got string`},
-        {message: 'properties: Expected an array, got string'},
-        {message: 'prefix: Expected a string, got object'},
-      ],
-    });
+    {message: `Errors in input options passed to withPropertiesFromObject`, errors: [
+      {message: `object: Expected an object, got string`},
+      {message: `properties: Expected an array, got string`},
+      {message: `prefix: Expected a string, got object`},
+    ]});
 
   t.throws(
     () => withPropertiesFromObject({
@@ -213,8 +207,8 @@ t.test(`withPropertiesFromObject: validate static inputs`, t => {
       properties: input.value(['abc', 'def', 123]),
     }),
     {message: `Errors in input options passed to withPropertiesFromObject`, errors: [
-      {message: 'object: Expected an object, got array'},
-      {message: 'properties: Errors validating array items', errors: [
+      {message: `object: Expected an object, got array`},
+      {message: `properties: Errors validating array items`, errors: [
         {
           [Symbol.for('hsmusic.decorate.indexInSourceArray')]: 2,
           message: /Expected a string, got number/,