aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-05 13:07:11 +0100
committerGravatar Joe Banks <[email protected]>2020-10-05 13:07:11 +0100
commit0bdec405e8adc8be2120c3f88311503503f6e2e9 (patch)
tree617e685d475acd15a7a6423d3a9b7826ee674f00 /src/tests
parentUpdate form listing tests with new types (diff)
Update header test to include custom titles
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();
+});
+