Skip to content

The agent that grows with you

test(desktop): a check error shows one plain status line

ethernet9b99d6b91eb8
diff --git a/apps/desktop/src/components/update-status.test.tsx b/apps/desktop/src/components/update-status.test.tsx
index 09a15ad160f..e5544466c6a 100644
--- a/apps/desktop/src/components/update-status.test.tsx
+++ b/apps/desktop/src/components/update-status.test.tsx
@@ -59,11 +59,11 @@ describe('deriveUpdateStatus', () => {
expect(view.supported).toBe(false)
})
- it('check error includes both the transport message and the underlying error', () => {
+ it('check error shows one plain line and keeps the transport message with the error', () => {
const view = derive({ supported: true, error: 'check-failed', message: 'ECONNREFUSED' })
expect(view.tone).toBe('error')
- expect(view.line).toBe(`${en.updates.cantReach} ECONNREFUSED`)
+ expect(view.line).toBe(en.updates.cantReach)
expect(view.error).toBe('ECONNREFUSED\ncheck-failed')
})