From 502f45925a1d2c47e161b342e1748edd7d20293f Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 29 Mar 2022 19:43:25 +0200
Subject: test(jest): add a test for Copyright component

---
 __tests__/jest/components/Copyright.test.tsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 __tests__/jest/components/Copyright.test.tsx

(limited to '__tests__/jest/components/Copyright.test.tsx')

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();
+  });
+});
-- 
cgit v1.2.3

