Skip to content

Commit

Permalink
test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto-Guerra committed Feb 26, 2024
1 parent ee0f356 commit 99ecc29
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions webapp/src/App.test.js → webapp/src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { render, screen } from '@testing-library/react';
import App from './App';
import React from 'react';

test('renders learn react link', () => {
render(<App />);
Expand Down
3 changes: 3 additions & 0 deletions webapp/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ function App() {

return (
<div className="">
<h1 className="text-3xl font-bold text-center mt-8">
Welcome to the 2024 edition of the Software Architecture course
</h1>
{devMode ? <Game /> : <Authentication />}
</div>
);
Expand Down
9 changes: 9 additions & 0 deletions webapp/src/components/Authentication.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { render, screen } from '@testing-library/react';
import Authentication from './Authentication';
import React from 'react';


test('always true test', () => {
render(<Authentication />);
expect(true).toBe(true);
});
4 changes: 1 addition & 3 deletions webapp/src/components/Authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ function Authentication() {
return (

<div className="container mx-auto">
<h1 className="text-3xl font-bold text-center mt-8">
Welcome to the 2024 edition of the Software Architecture course
</h1>

{showLogin ? <Login /> : <AddUser />}
<div className="text-center mt-8">
{showLogin ? (
Expand Down

0 comments on commit 99ecc29

Please sign in to comment.