Fix test expectation for toError string conversion

The `toError` utility now converts thrown strings to proper `Error`
objects, changing the cause message format from `unknown error 'boom'`
to `Error: boom`.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-03 11:58:00 +02:00
parent 482ceed6d2
commit 7a35328a03
@@ -338,7 +338,7 @@ describe('DefaultCatalogProcessingOrchestrator', () => {
ok: false,
errors: [
new InputError(
"Policy check failed for location:default/l; caused by unknown error 'boom'",
'Policy check failed for location:default/l; caused by Error: boom',
),
],
}),