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

de89d9c95b stopped appending the transport message to "couldn't reach
the update server"; the details stay in the expandable error. Pin that
instead of the old concatenated line.
This commit is contained in:
ethernet
2026-09-24 14:43:13 -04:00
parent 428d2d6a86
commit 9b99d6b91e

View File

@@ -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')
})