« get me outta code hell

test: withPropertiesFromObject: belatedly update tests - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-06 12:49:31 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-06 12:49:31 -0400
commit48ae5892015d60a1b0a353c07bdb919320bbaae3 (patch)
tree94810debe4fd7e384313117878c293a8eae8c953 /test/unit
parent1ea1b507fdb9368475cb46dcc50baeeb2c3126a8 (diff)
test: withPropertiesFromObject: belatedly update tests
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/data/composite/data/withPropertiesFromObject.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/unit/data/composite/data/withPropertiesFromObject.js b/test/unit/data/composite/data/withPropertiesFromObject.js
index cb1d8d2..750dc8c 100644
--- a/test/unit/data/composite/data/withPropertiesFromObject.js
+++ b/test/unit/data/composite/data/withPropertiesFromObject.js
@@ -208,7 +208,10 @@ t.test(`withPropertiesFromObject: validate static inputs`, t => {
       {message: `properties: Errors validating array items`, errors: [
         {
           [Symbol.for('hsmusic.annotateError.indexInSourceArray')]: 2,
-          message: /Expected a string, got number/,
+          message: `Error at zero-index 2: 123`,
+          cause: {
+            message: `Expected a string, got number`,
+          },
         },
       ]},
     ]});
@@ -241,7 +244,10 @@ t.test(`withPropertiesFromObject: validate dynamic inputs`, t => {
           {message: `properties: Errors validating array items`, errors: [
             {
               [Symbol.for('hsmusic.annotateError.indexInSourceArray')]: 2,
-              message: /Expected a string, got number/,
+              message: `Error at zero-index 2: 123`,
+              cause: {
+                message: `Expected a string, got number`,
+              },
             },
           ]},
         ]}}});