Skip to content

Commit

Permalink
test: simplify translations test structure
Browse files Browse the repository at this point in the history
- Remove nested describe block as suggested in review
- Keep test functionality unchanged
  • Loading branch information
openhands-agent committed Jan 10, 2025
1 parent 262f056 commit 3f51460
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/__tests__/i18n/translations.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const renderWithI18n = (component: React.ReactNode, language: string = 'en') =>
};

describe('Translations', () => {
describe('Translation Coverage', () => {
it('should have translations for all supported languages', () => {
it('should have translations for all supported languages', () => {
// Get all language codes from AvailableLanguages
const languageCodes = AvailableLanguages.map(lang => lang.value);

Expand Down Expand Up @@ -57,5 +56,4 @@ describe('Translations', () => {
// Expect no missing translations
expect(missingTranslations).toHaveLength(0);
});
});
});

0 comments on commit 3f51460

Please sign in to comment.