Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#120459)

hermes-seaeye[bot]c9dca726514b
diff --git a/apps/desktop/src/components/ui/profile-glyph.test.tsx b/apps/desktop/src/components/ui/profile-glyph.test.tsx
index 27d069c21ad..c2ca0fdccaf 100644
--- a/apps/desktop/src/components/ui/profile-glyph.test.tsx
+++ b/apps/desktop/src/components/ui/profile-glyph.test.tsx
@@ -7,9 +7,27 @@ afterEach(cleanup)
describe('ProfileGlyph', () => {
it('preserves the first readable grapheme across scripts and emoji', () => {
- const names = ['研究助手', 'Работа', 'Ελληνικά', 'Álvaro', 'A\u0301lvaro', '👨‍💻', '🇨🇳', '1️⃣ helper', '𠮷野', '--dev', '']
+ const names = [
+ '研究助手',
+ 'Работа',
+ 'Ελληνικά',
+ 'Álvaro',
+ 'A\u0301lvaro',
+ '👨‍💻',
+ '🇨🇳',
+ '1️⃣ helper',
+ '𠮷野',
+ '--dev',
+ ''
+ ]
const expected = ['研', 'Р', 'Ε', 'Á', 'A\u0301', '👨‍💻', '🇨🇳', '1️⃣', '𠮷', 'd', '?']
- const { container } = render(<>{names.map(name => <ProfileGlyph color={null} isDefault={false} key={name} name={name} />)}</>)
+ const { container } = render(
+ <>
+ {names.map(name => (
+ <ProfileGlyph color={null} isDefault={false} key={name} name={name} />
+ ))}
+ </>
+ )
expect(Array.from(container.children, child => child.textContent)).toEqual(expected)
})
diff --git a/apps/desktop/src/lib/commit-changelog-localization.test.ts b/apps/desktop/src/lib/commit-changelog-localization.test.ts
index 4f9e7fd9e67..3792d0f910b 100644
--- a/apps/desktop/src/lib/commit-changelog-localization.test.ts
+++ b/apps/desktop/src/lib/commit-changelog-localization.test.ts
@@ -17,7 +17,9 @@ describe('changelog display copy', () => {
const fallback = { label: '本次更新', item: '改进与修复' }
for (const commits of [undefined, [], [{ summary: 'chore: internal' }]]) {
- expect(buildCommitChangelog(commits, { fallback })).toEqual([{ id: 'other', label: fallback.label, items: [fallback.item] }])
+ expect(buildCommitChangelog(commits, { fallback })).toEqual([
+ { id: 'other', label: fallback.label, items: [fallback.item] }
+ ])
}
expect(buildCommitChangelog([{ summary: 'fix: real change' }], { fallback })[0].items).toEqual(['Real change'])