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:
@@ -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',
|
||||
),
|
||||
],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user