Added Custom Docker Action which prints fibonacci

This commit is contained in:
2023-07-27 22:22:23 +02:00
parent 2c1e7b4ed2
commit 45ec9ddd11
24 changed files with 8695 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import MainContent from './MainContent';
// My tests!
// Add yet another comment
describe('MainContent', () => {
it('should render a button', () => {
render(<MainContent />);
expect(screen.getByRole('button')).toBeInTheDocument();
});
it('should show the help area after clicking the button', async () => {
render(<MainContent />);
const button = screen.getByRole('button');
await userEvent.click(button);
expect(screen.getByTestId('help-area')).toBeInTheDocument();
});
});