From d4045fbcbfa8208ec31539744417f315f1f6fad8 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 21 Nov 2023 19:01:18 +0100
Subject: refactor(components): split Layout component in smaller components

The previous component was too long and hardly readable. So I splitted
it in different part and added tests.
---
 .../templates/layout/site-header/site-header.test.tsx         | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src/components/templates/layout/site-header/site-header.test.tsx

(limited to 'src/components/templates/layout/site-header/site-header.test.tsx')

diff --git a/src/components/templates/layout/site-header/site-header.test.tsx b/src/components/templates/layout/site-header/site-header.test.tsx
new file mode 100644
index 0000000..55ce072
--- /dev/null
+++ b/src/components/templates/layout/site-header/site-header.test.tsx
@@ -0,0 +1,11 @@
+import { describe, expect, it } from '@jest/globals';
+import { render, screen as rtlScreen } from '../../../../../tests/utils';
+import { SiteHeader } from './site-header';
+
+describe('SiteHeader', () => {
+  it('renders the website header', () => {
+    render(<SiteHeader />);
+
+    expect(rtlScreen.getByRole('banner')).toBeInTheDocument();
+  });
+});
-- 
cgit v1.2.3

