diff --git a/webapp/src/App.test.js b/webapp/src/App.test.tsx similarity index 91% rename from webapp/src/App.test.js rename to webapp/src/App.test.tsx index 5e3b731..65de80b 100644 --- a/webapp/src/App.test.js +++ b/webapp/src/App.test.tsx @@ -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(); diff --git a/webapp/src/App.tsx b/webapp/src/App.tsx index eec60f1..235f2fe 100644 --- a/webapp/src/App.tsx +++ b/webapp/src/App.tsx @@ -6,6 +6,9 @@ function App() { return (
+

+ Welcome to the 2024 edition of the Software Architecture course +

{devMode ? : }
); diff --git a/webapp/src/components/Authentication.test.tsx b/webapp/src/components/Authentication.test.tsx new file mode 100644 index 0000000..b5c9794 --- /dev/null +++ b/webapp/src/components/Authentication.test.tsx @@ -0,0 +1,9 @@ +import { render, screen } from '@testing-library/react'; +import Authentication from './Authentication'; +import React from 'react'; + + +test('always true test', () => { + render(); + expect(true).toBe(true); +}); \ No newline at end of file diff --git a/webapp/src/components/Authentication.tsx b/webapp/src/components/Authentication.tsx index f36ad8c..360ce86 100644 --- a/webapp/src/components/Authentication.tsx +++ b/webapp/src/components/Authentication.tsx @@ -13,9 +13,7 @@ function Authentication() { return (
-

- Welcome to the 2024 edition of the Software Architecture course -

+ {showLogin ? : }
{showLogin ? (