Skip to content

Commit ae8e544

Browse files
test(i18n): verify all locales have COMMITS_THIS_MONTH and VS_LAST_MONTH keys
1 parent e6b5723 commit ae8e544

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

lib/i18n/badgeLabels.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,16 @@ describe('getLabels', () => {
7070
}
7171
});
7272
});
73+
74+
describe('monthly view keys', () => {
75+
it.each(Object.keys(labels))('locale %s has a non-empty COMMITS_THIS_MONTH', (lang) => {
76+
const locale = getLabels(lang);
77+
expect(locale.COMMITS_THIS_MONTH).toEqual(expect.stringMatching(/\S/));
78+
});
79+
80+
it.each(Object.keys(labels))('locale %s has a non-empty VS_LAST_MONTH', (lang) => {
81+
const locale = getLabels(lang);
82+
expect(locale.VS_LAST_MONTH).toEqual(expect.stringMatching(/\S/));
83+
});
84+
});
7385
});

0 commit comments

Comments
 (0)