This commit is contained in:
2024-10-19 07:48:30 +03:00
parent 2829c11e4c
commit 17697d7f77
21 changed files with 5050 additions and 630 deletions

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 AccountButtons component', () => {
render(<AccountButtons registered={false} />);
const accountButtonsElement = screen.getByRole('button', { name: /register/i });
expect(accountButtonsElement).toBeInTheDocument();
});
});

View File

@@ -0,0 +1,13 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
describe('Hello World Test', () => {
it('should display hello world', () => {
// Render a simple component
render(<div>Hello World</div>);
// Check if "Hello World" is in the document
const helloWorldElement = screen.getByText(/hello world/i);
expect(helloWorldElement).toBeInTheDocument();
});
});