From 902ebbafb7cfb56f7a878d33cf94e5708861ff4a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Sep 2023 19:22:52 -0300 Subject: test: various error whitespace cleanup --- test/unit/data/templateCompositeFrom.js | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'test/unit/data/templateCompositeFrom.js') diff --git a/test/unit/data/templateCompositeFrom.js b/test/unit/data/templateCompositeFrom.js index e96b782e..2de18730 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({ -- cgit 1.3.0-6-gf8a5