We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4538996 commit 2f33ad1Copy full SHA for 2f33ad1
1 file changed
lib/i18n/badgeLabels.test.ts
@@ -1,5 +1,5 @@
1
import { describe, it, expect } from 'vitest';
2
-import { getLabels } from './badgeLabels';
+import { getLabels, labels } from './badgeLabels';
3
4
describe('getLabels', () => {
5
describe('supported locales', () => {
@@ -61,5 +61,13 @@ describe('getLabels', () => {
61
expect(typeof labels.ANNUAL_SYNC_TOTAL).toBe('string');
62
expect(typeof labels.PEAK_STREAK).toBe('string');
63
});
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
+ });
72
73
0 commit comments