« 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
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/data/composite')
-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 cb1d8d21..750dc8c4 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`,
+              },
             },
           ]},
         ]}}});