Fixed app test function

This commit is contained in:
Gregory Campbell
2026-06-05 15:27:11 -04:00
parent 3044c3f200
commit b47ac6f600
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const App = () => (
<Route path="/Resume" component={Resume} /> <Route path="/Resume" component={Resume} />
<Route path="/Projects" component={Projects} /> <Route path="/Projects" component={Projects} />
<Route path="/Contact" component={Contact} /> <Route path="/Contact" component={Contact} />
<Route component={NoMatch} /> <Route component={NoMatch} id="test"/>
</Switch> </Switch>
</Layout> </Layout>
<Footer /> <Footer />
+1 -1
View File
@@ -4,6 +4,6 @@ import App from './App';
test('renders learn react link', () => { test('renders learn react link', () => {
const { getByText } = render(<App />); const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i); const linkElement = document.getElementById('test');
expect(linkElement).toBeInTheDocument(); expect(linkElement).toBeInTheDocument();
}); });