Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(ChatErrorNotice): flatten nested metadata in test fixture

Steven Enamakel92991be6b835
diff --git a/app/src/features/conversations/aui/ChatErrorNotice.test.tsx b/app/src/features/conversations/aui/ChatErrorNotice.test.tsx
index 53149cca4e..b0b30e08e9 100644
--- a/app/src/features/conversations/aui/ChatErrorNotice.test.tsx
+++ b/app/src/features/conversations/aui/ChatErrorNotice.test.tsx
@@ -75,9 +75,7 @@ describe('ChatErrorNotice', () => {
role: 'assistant',
content: [{ type: 'text', text: 'Something went wrong.' }],
metadata: {
- custom: {
- extraMetadata: { [CHAT_ERROR_METADATA_KEY]: { errorType: 'timeout' } },
- },
+ custom: { extraMetadata: { [CHAT_ERROR_METADATA_KEY]: { errorType: 'timeout' } } },
},
},
]}