front/__tests__/AccountButtons.test.tsx
2024-10-19 10:28:37 +03:00

12 lines
432 B
TypeScript

import React from 'react';
import { render, screen } from '@testing-library/react';
import AccountButtons from '../src/components/account/AccountButtons.jsx';
describe('AccountButtons Component', () => {
it('should render the Back link', () => {
render(<AccountButtons registered={false} />);
const backLinkElement = screen.getByRole('link', { name: /back/i });
expect(backLinkElement).toBeInTheDocument();
});
});