diff options
Diffstat (limited to 'test/unit/data/composite')
-rw-r--r-- | test/unit/data/composite/data/withPropertiesFromObject.js | 10 |
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`, + }, }, ]}, ]}}}); |