diff options
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 |
commit | 48ae5892015d60a1b0a353c07bdb919320bbaae3 (patch) | |
tree | 94810debe4fd7e384313117878c293a8eae8c953 | |
parent | 1ea1b507fdb9368475cb46dcc50baeeb2c3126a8 (diff) |
test: withPropertiesFromObject: belatedly update tests
-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`, + }, }, ]}, ]}}}); |