From 48ae5892015d60a1b0a353c07bdb919320bbaae3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Jan 2024 12:49:31 -0400 Subject: test: withPropertiesFromObject: belatedly update tests --- test/unit/data/composite/data/withPropertiesFromObject.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test') 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`, + }, }, ]}, ]}}}); -- cgit 1.3.0-6-gf8a5