« 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/templateCompositeFrom.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/templateCompositeFrom.js
parent9b9aa750297a220d76b6602e1e23c891e50986d4 (diff)
test: various error whitespace cleanup
Diffstat (limited to 'test/unit/data/templateCompositeFrom.js')
-rw-r--r--test/unit/data/templateCompositeFrom.js29
1 files changed, 10 insertions, 19 deletions
diff --git a/test/unit/data/templateCompositeFrom.js b/test/unit/data/templateCompositeFrom.js
index e96b782..2de1873 100644
--- a/test/unit/data/templateCompositeFrom.js
+++ b/test/unit/data/templateCompositeFrom.js
@@ -161,13 +161,10 @@ t.test(`templateCompositeFrom: validate static input values`, t => {
         baz: 'aeiou',
         raz: input.value(123),
       }),
-      {
-        message: `Errors in input options passed to stubComposite`,
-        errors: [
-          {message: `Unexpected input names: baz, raz`},
-          {message: `Required these inputs: foo, bar`},
-        ],
-      });
+      {message: `Errors in input options passed to stubComposite`, errors: [
+        {message: `Unexpected input names: baz, raz`},
+        {message: `Required these inputs: foo, bar`},
+      ]});
   });
 
   t.test(`templateCompositeFrom: validate acceptsNull / defaultValue: null`, t => {
@@ -181,12 +178,9 @@ t.test(`templateCompositeFrom: validate static input values`, t => {
 
     t.throws(
       () => template1({}),
-      {
-        message: `Errors in input options passed to stubComposite`,
-        errors: [
-          {message: `Required these inputs: foo`},
-        ],
-      },
+      {message: `Errors in input options passed to stubComposite`, errors: [
+        {message: `Required these inputs: foo`},
+      ]},
       `throws if input missing and not marked specially`);
 
     const template2 = templateCompositeFrom({
@@ -197,12 +191,9 @@ t.test(`templateCompositeFrom: validate static input values`, t => {
 
     t.throws(
       () => template2({}),
-      {
-        message: `Errors in input options passed to stubComposite`,
-        errors: [
-          {message: `Required these inputs: bar`},
-        ],
-      },
+      {message: `Errors in input options passed to stubComposite`, errors: [
+        {message: `Required these inputs: bar`},
+      ]},
       `throws if input missing even if marked {acceptsNull}`);
 
     const template3 = templateCompositeFrom({