From 96bb44927bf674aa0cd139ef430921de2d988bc3 Mon Sep 17 00:00:00 2001
From: Joe Banks <joseph@josephbanks.me>
Date: Mon, 28 Sep 2020 04:04:06 +0100
Subject: Add initial tests

---
 src/tests/components/HeaderBar.test.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 src/tests/components/HeaderBar.test.tsx

(limited to 'src/tests/components/HeaderBar.test.tsx')

diff --git a/src/tests/components/HeaderBar.test.tsx b/src/tests/components/HeaderBar.test.tsx
new file mode 100644
index 0000000..3567d7e
--- /dev/null
+++ b/src/tests/components/HeaderBar.test.tsx
@@ -0,0 +1,9 @@
+import React from 'react';
+import { render } from '@testing-library/react';
+import HeaderBar from "../../components/HeaderBar";
+
+test('renders header bar with title', () => {
+    const { getByText } = render(<HeaderBar />);
+    const formListing = getByText(/Python Discord Forms/i);
+    expect(formListing).toBeInTheDocument();
+});
-- 
cgit v1.2.3

