Fixed app test function
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ const App = () => (
|
||||
<Route path="/Resume" component={Resume} />
|
||||
<Route path="/Projects" component={Projects} />
|
||||
<Route path="/Contact" component={Contact} />
|
||||
<Route component={NoMatch} />
|
||||
<Route component={NoMatch} id="test"/>
|
||||
</Switch>
|
||||
</Layout>
|
||||
<Footer />
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@ import App from './App';
|
||||
|
||||
test('renders learn react link', () => {
|
||||
const { getByText } = render(<App />);
|
||||
const linkElement = getByText(/learn react/i);
|
||||
const linkElement = document.getElementById('test');
|
||||
expect(linkElement).toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user