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