aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/components/HeaderBar.test.tsx7
1 files changed, 7 insertions, 0 deletions
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();
+});
+