import { render, screen } from '@testing-library/react';
import NotFound from './not-found';

vi.mock('@/i18n/server', () => ({
    getI18n: vi.fn().mockReturnValue((term: string) => term),
}));

describe('<NotFound>', () => {
    it('should render title', async () => {
        render(await NotFound());

        expect(screen.getByText('notFound.title')).toBeVisible();
    });

    it('should render message', async () => {
        render(await NotFound());

        expect(screen.getByText('notFound.message')).toBeVisible();
    });
});
