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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-08-18 09:33:57 +00:00
committed by GitHub
parent a1682376ca
commit 7cae03b8c0
2 changed files with 4 additions and 2 deletions
@@ -49,7 +49,8 @@ vi.mock('@/store/profile', () => ({
$profileScope: atom('default'),
ALL_PROFILES: '*',
normalizeProfileKey: (name: string) => name,
profileLabel: (profile: { display_name?: string; name: string }) => (profile.display_name ?? '').trim() || profile.name,
profileLabel: (profile: { display_name?: string; name: string }) =>
(profile.display_name ?? '').trim() || profile.name,
refreshActiveProfile: vi.fn().mockResolvedValue(undefined),
selectProfile: vi.fn(),
setProfileColor: vi.fn(),
+2 -1
View File
@@ -57,7 +57,8 @@ vi.mock('@/store/profile', () => ({
$activeGatewayProfile: activeGateway,
$profileColors,
normalizeProfileKey: (name: null | string | undefined) => (name ?? '').trim() || 'default',
profileLabel: (profile: { display_name?: string; name: string }) => (profile.display_name ?? '').trim() || profile.name,
profileLabel: (profile: { display_name?: string; name: string }) =>
(profile.display_name ?? '').trim() || profile.name,
refreshProfiles: vi.fn(async () => [] as ProfileInfo[]),
selectProfile: vi.fn(),
setActiveProfile: vi.fn()