Skip to content

Commit 2f33ad1

Browse files
committed
test(i18n): verify locale labels are non-empty
1 parent 4538996 commit 2f33ad1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lib/i18n/badgeLabels.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from 'vitest';
2-
import { getLabels } from './badgeLabels';
2+
import { getLabels, labels } from './badgeLabels';
33

44
describe('getLabels', () => {
55
describe('supported locales', () => {
@@ -61,5 +61,13 @@ describe('getLabels', () => {
6161
expect(typeof labels.ANNUAL_SYNC_TOTAL).toBe('string');
6262
expect(typeof labels.PEAK_STREAK).toBe('string');
6363
});
64+
it('ensures all locale labels are non-empty strings', () => {
65+
for (const locale of Object.values(labels)) {
66+
for (const value of Object.values(locale)) {
67+
expect(typeof value).toBe('string');
68+
expect(value.length).toBeGreaterThan(0);
69+
}
70+
}
71+
});
6472
});
6573
});

0 commit comments

Comments
 (0)