fmt(js): `npm run fix` on merge (#85010)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
8018f9e016
commit
07ed2fdb60
|
|
@ -88,19 +88,19 @@ test('detectRemoteDisplay honors the HERMES_DESKTOP_DISABLE_GPU override both wa
|
|||
|
||||
test('resolveLinuxPasswordStore applies known backends on linux', () => {
|
||||
for (const store of ['gnome-libsecret', 'kwallet', 'kwallet5', 'kwallet6', 'basic']) {
|
||||
assert.deepEqual(
|
||||
resolveLinuxPasswordStore({ env: { HERMES_DESKTOP_PASSWORD_STORE: store }, platform: 'linux' }),
|
||||
{ store, warning: null }
|
||||
)
|
||||
assert.deepEqual(resolveLinuxPasswordStore({ env: { HERMES_DESKTOP_PASSWORD_STORE: store }, platform: 'linux' }), {
|
||||
store,
|
||||
warning: null
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
test('resolveLinuxPasswordStore is a no-op when the env var is unset', () => {
|
||||
assert.deepEqual(resolveLinuxPasswordStore({ env: {}, platform: 'linux' }), { store: null, warning: null })
|
||||
assert.deepEqual(
|
||||
resolveLinuxPasswordStore({ env: { HERMES_DESKTOP_PASSWORD_STORE: ' ' }, platform: 'linux' }),
|
||||
{ store: null, warning: null }
|
||||
)
|
||||
assert.deepEqual(resolveLinuxPasswordStore({ env: { HERMES_DESKTOP_PASSWORD_STORE: ' ' }, platform: 'linux' }), {
|
||||
store: null,
|
||||
warning: null
|
||||
})
|
||||
})
|
||||
|
||||
test('resolveLinuxPasswordStore ignores the env var off linux', () => {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,12 @@ import {
|
|||
} from './backend-probes'
|
||||
import { waitForDashboardPortAnnouncement } from './backend-ready'
|
||||
import { shouldLatchBackendStartFailure, shouldLatchRemoteReauthFailure } from './backend-start-failure'
|
||||
import { detectRemoteDisplay, isWindowsBinaryPathInWsl, isWslEnvironment, resolveLinuxPasswordStore } from './bootstrap-platform'
|
||||
import {
|
||||
detectRemoteDisplay,
|
||||
isWindowsBinaryPathInWsl,
|
||||
isWslEnvironment,
|
||||
resolveLinuxPasswordStore
|
||||
} from './bootstrap-platform'
|
||||
import { decideBootstrapRepair } from './bootstrap-repair-guard'
|
||||
import { runBootstrap } from './bootstrap-runner'
|
||||
import { applyConnectionChange, resolveTerminalConnection } from './connection-apply'
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import {
|
||||
onComposerAttachImagesRequest,
|
||||
onComposerFocusRequest,
|
||||
onComposerInsertRequest
|
||||
} from './focus'
|
||||
import { onComposerAttachImagesRequest, onComposerFocusRequest, onComposerInsertRequest } from './focus'
|
||||
import { handleWindowPaste, routeClipboardToComposer } from './paste-to-focus'
|
||||
|
||||
/** Minimal DataTransfer stand-in: text/plain + optional image file items. */
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ function SidebarSessionRowImpl({
|
|||
const context = useStoreSelector($projects, projects =>
|
||||
card ? (sessionProjectLabel(session, projects) ?? (pathLeaf(session.cwd) || t.sidebar.projects.home)) : null
|
||||
)
|
||||
|
||||
// Card footer line: which model worked on it and how big it got. Rendered
|
||||
// as separate spans with a flex gap — a joined string can't put real space
|
||||
// between them (HTML collapses runs of whitespace to one).
|
||||
|
|
|
|||
|
|
@ -39,9 +39,7 @@ describe('isLikelyProseCodeBlock', () => {
|
|||
|
||||
describe('isLikelyStructuredText', () => {
|
||||
it('flags indented config stanzas', () => {
|
||||
expect(
|
||||
isLikelyStructuredText(['Host x', ' HostName 10.0.0.1', ' Port 22'].join('\n'))
|
||||
).toBe(true)
|
||||
expect(isLikelyStructuredText(['Host x', ' HostName 10.0.0.1', ' Port 22'].join('\n'))).toBe(true)
|
||||
})
|
||||
|
||||
it('flags flat key-value / settings listings', () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue