fmt(js): npm run fix on merge (#93429)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-08-24 01:49:17 +00:00
committed by GitHub
parent 654d537088
commit 8c8193dce5
4 changed files with 13 additions and 19 deletions

View File

@@ -1297,10 +1297,10 @@ test('Apply between two remotes keeps each real registration once and activates
const remotes = second.connections.filter(connection => connection.kind === 'remote')
assert.deepEqual(
remotes.map(connection => connection.url).sort(),
['https://one.example.com', 'https://two.example.com']
)
assert.deepEqual(remotes.map(connection => connection.url).sort(), [
'https://one.example.com',
'https://two.example.com'
])
assert.equal(new Set(remotes.map(connection => connection.id)).size, 2)
assert.equal(second.primary, remotes.find(connection => connection.url === 'https://two.example.com')?.id)
assert.equal(second.lastUsed, second.primary)

View File

@@ -268,17 +268,12 @@ describe('revalidatePooledRemoteBackends', () => {
const harness = (
rawEntries: Array<[string, { process?: unknown; remoteBaseUrl?: null | string; authMode?: string }]>
) => {
const entries: Array<[
string,
TestRemoteConnection & { connectionPromise: Promise<TestRemoteConnection> }
]> = rawEntries.map(([profile, entry]) => {
const connection = { ...entry, baseUrl: String(entry.remoteBaseUrl || '') }
const entries: Array<[string, TestRemoteConnection & { connectionPromise: Promise<TestRemoteConnection> }]> =
rawEntries.map(([profile, entry]) => {
const connection = { ...entry, baseUrl: String(entry.remoteBaseUrl || '') }
return [
profile,
{ ...connection, connectionPromise: Promise.resolve(connection) }
]
})
return [profile, { ...connection, connectionPromise: Promise.resolve(connection) }]
})
const unreachable = new Set<string>()
const log = vi.fn()

View File

@@ -4,7 +4,9 @@ import { sessionTileResumeFailure } from './session-tile'
describe('sessionTileResumeFailure', () => {
it('keeps a confirmed durable session retryable instead of repeating a stale 404', () => {
expect(sessionTileResumeFailure('session not found', true, true)).toBe('Session is still available — retry resuming it.')
expect(sessionTileResumeFailure('session not found', true, true)).toBe(
'Session is still available — retry resuming it.'
)
})
it('fails safe on an inconclusive durable lookup', () => {

View File

@@ -125,10 +125,7 @@ export function sessionBelongsToProfile(
* (Bot Mode's canonical "Bot Chat") never appear in the row list, so the hint is
* often the only sync source.
*/
export function knownSessionProfile(
sessions: readonly SessionInfo[],
sessionId: null | string
): string | undefined {
export function knownSessionProfile(sessions: readonly SessionInfo[], sessionId: null | string): string | undefined {
if (!sessionId) {
return undefined
}