From 3272ac336da52364ace5ed76d8f609d4088ffc06 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 28 Sep 2023 18:19:00 +0200
Subject: refactor(components): make Logo component ESlint compliant

I also renamed the title prop to heading because title already exists
as HTML attribute.
---
 src/components/atoms/images/logo/logo.test.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src/components/atoms/images/logo/logo.test.tsx

(limited to 'src/components/atoms/images/logo/logo.test.tsx')

diff --git a/src/components/atoms/images/logo/logo.test.tsx b/src/components/atoms/images/logo/logo.test.tsx
new file mode 100644
index 0000000..26fe6c3
--- /dev/null
+++ b/src/components/atoms/images/logo/logo.test.tsx
@@ -0,0 +1,13 @@
+import { describe, expect, it } from '@jest/globals';
+import { render, screen as rtlScreen } from '@testing-library/react';
+import { Logo } from './logo';
+
+describe('Logo', () => {
+  it('renders a logo with a title', () => {
+    const heading = 'enim quaerat veritatis';
+
+    render(<Logo heading={heading} />);
+
+    expect(rtlScreen.getByRole('img')).toHaveAccessibleName(heading);
+  });
+});
-- 
cgit v1.2.3

