« get me outta code hell

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:
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 b1b8be7..835767c 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/,