From 9b445e635e2694c0d6095a1a2613fc59314dc595 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 4 Apr 2022 12:12:26 +0200
Subject: chore: add a NavLink component

---
 src/components/atoms/links/nav-link.test.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 src/components/atoms/links/nav-link.test.tsx

(limited to 'src/components/atoms/links/nav-link.test.tsx')

diff --git a/src/components/atoms/links/nav-link.test.tsx b/src/components/atoms/links/nav-link.test.tsx
new file mode 100644
index 0000000..7750cee
--- /dev/null
+++ b/src/components/atoms/links/nav-link.test.tsx
@@ -0,0 +1,12 @@
+import { render, screen } from '@test-utils';
+import NavLink from './nav-link';
+
+describe('NavLink', () => {
+  it('renders a nav link to blog page', () => {
+    render(<NavLink href="/blog" label="Blog" />);
+    expect(screen.getByRole('link', { name: 'Blog' })).toHaveAttribute(
+      'href',
+      '/blog'
+    );
+  });
+});
-- 
cgit v1.2.3

