mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 18:59:27 +00:00
19 lines
498 B
TypeScript
19 lines
498 B
TypeScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
import App from './App';
|
|
|
|
jest.mock('react-i18next', () => ({
|
|
useTranslation: () => ({
|
|
t: (k: string) => k,
|
|
i18n: {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
changeLanguage: (l: string) => {},
|
|
language: 'en',
|
|
},
|
|
}),
|
|
}));
|
|
|
|
test('renders the app container', () => {
|
|
const { container } = render(<App />);
|
|
expect(container.querySelector('div.App')).toBeTruthy();
|
|
});
|