import { render } from '@testing-library/react';
import { notFound } from 'next/navigation';
import CatchAll from './page';

vi.mock('next/navigation', () => ({
    notFound: vi.fn(),
}));

describe('<CatchAll>', () => {
    it('should call "notFound" page', async () => {
        // @ts-expect-error it should not return jsx
        render(await CatchAll());

        expect(notFound).toBeCalled();
    });
});
