From 3adfb0db3493a55276b126bdbcb343da89218601 Mon Sep 17 00:00:00 2001
From: Joe Banks <joseph@josephbanks.me>
Date: Mon, 12 Oct 2020 17:56:49 +0100
Subject: Add many new tests

---
 src/tests/pages/LandingPage.test.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src/tests/pages/LandingPage.test.tsx

(limited to 'src/tests/pages/LandingPage.test.tsx')

diff --git a/src/tests/pages/LandingPage.test.tsx b/src/tests/pages/LandingPage.test.tsx
new file mode 100644
index 0000000..ba32bab
--- /dev/null
+++ b/src/tests/pages/LandingPage.test.tsx
@@ -0,0 +1,13 @@
+import React from 'react';
+import { render } from '@testing-library/react';
+
+import LandingPage from "../../pages/LandingPage";
+
+import { BrowserRouter as Router } from "react-router-dom";
+
+test('renders landing page', () => {
+    const { getByText } = render(<Router><LandingPage /></Router>);
+    // If we rendered the headerbar we rendered the landing page.
+    let headerBar = getByText(/Python Discord Forms/);
+    expect(headerBar).toBeInTheDocument();
+});
-- 
cgit v1.2.3

