diff options
author | 2020-10-05 13:07:11 +0100 | |
---|---|---|
committer | 2020-10-05 13:07:11 +0100 | |
commit | 0bdec405e8adc8be2120c3f88311503503f6e2e9 (patch) | |
tree | 617e685d475acd15a7a6423d3a9b7826ee674f00 /src | |
parent | Update form listing tests with new types (diff) |
Update header test to include custom titles
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/components/HeaderBar.test.tsx | 7 |
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(); +}); + |