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