AccountButton done

This commit is contained in:
2024-10-19 10:28:37 +03:00
parent dd16f42995
commit 33c8f863a1
4 changed files with 6 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
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();
});
});