From 0bdec405e8adc8be2120c3f88311503503f6e2e9 Mon Sep 17 00:00:00 2001
From: Joe Banks <joseph@josephbanks.me>
Date: Mon, 5 Oct 2020 13:07:11 +0100
Subject: Update header test to include custom titles

---
 src/tests/components/HeaderBar.test.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

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

diff --git a/src/tests/components/HeaderBar.test.tsx b/src/tests/components/HeaderBar.test.tsx
index 3567d7e..2e1f868 100644
--- a/src/tests/components/HeaderBar.test.tsx
+++ b/src/tests/components/HeaderBar.test.tsx
@@ -7,3 +7,10 @@ test('renders header bar with title', () => {
     const formListing = getByText(/Python Discord Forms/i);
     expect(formListing).toBeInTheDocument();
 });
+
+test('renders header bar with custom title', () => {
+    const { getByText } = render(<HeaderBar title="Testing title"/>);
+    const formListing = getByText(/Testing title/i);
+    expect(formListing).toBeInTheDocument();
+});
+
-- 
cgit v1.2.3

