« 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/templateCompositeFrom.js
diff options
context:
space:
mode:
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({