blob: ba32bab8de53a26559c4a0e40415731a318b0c40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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();
});
|