summaryrefslogtreecommitdiffstats
path: root/__tests__
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-29 19:43:25 +0200
committerArmand Philippot <git@armandphilippot.com>2022-03-29 19:43:25 +0200
commit502f45925a1d2c47e161b342e1748edd7d20293f (patch)
tree49d1c766d7dfd074056337e39860753c876d7946 /__tests__
parentc6fc98a8e6b701e7bba30212e405c4ec6cc114ea (diff)
test(jest): add a test for Copyright component
Diffstat (limited to '__tests__')
-rw-r--r--__tests__/jest/components/Copyright.test.tsx14
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();
+ });
+});