diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-29 19:43:25 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-29 19:43:25 +0200 |
| commit | 502f45925a1d2c47e161b342e1748edd7d20293f (patch) | |
| tree | 49d1c766d7dfd074056337e39860753c876d7946 | |
| parent | c6fc98a8e6b701e7bba30212e405c4ec6cc114ea (diff) | |
test(jest): add a test for Copyright component
| -rw-r--r-- | __tests__/jest/components/Copyright.test.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/__tests__/jest/components/Copyright.test.tsx b/__tests__/jest/components/Copyright.test.tsx new file mode 100644 index 0000000..5f6f287 --- /dev/null +++ b/__tests__/jest/components/Copyright.test.tsx @@ -0,0 +1,14 @@ +import Copyright from '@components/Copyright/Copyright'; +import { render, screen } from '@test-utils'; +import '../__mocks__/matchMedia.mock'; + +describe('Copyright', () => { + it('renders the Copyright component', () => { + render(<Copyright />); + }); + + it('displays author name', () => { + render(<Copyright />); + expect(screen.getByText('Armand Philippot')).toBeInTheDocument(); + }); +}); |
