Skip to content

Commit

Permalink
App test
Browse files Browse the repository at this point in the history
  • Loading branch information
lauracc97 committed Apr 22, 2024
1 parent e4b39b8 commit 5f0c9d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions webapp/src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { render, screen } from '@testing-library/react';
import { BrowserRouter} from 'react-router-dom';
import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/Welcome to the 2024 edition of the Software Architecture course/i);
expect(linkElement).toBeInTheDocument();
render(
<BrowserRouter>
<App/>
</BrowserRouter>
);
});

0 comments on commit 5f0c9d7

Please sign in to comment.