This repository has been archived by the owner on May 10, 2024. It is now read-only.
generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from Arquisoft/183-Usability
LGTM 🍡
- Loading branch information
Showing
13 changed files
with
241 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import { MDBFooter } from 'mdb-react-ui-kit'; | ||
//import './Footer.css'; | ||
|
||
export const Footer= () => { | ||
return ( | ||
|
||
<MDBFooter className='footer text-black dark:text-white bg-teal-50 dark:bg-zinc-800' style={{position: 'relative', bottom: 0, width: '100%', padding: '10px', textAlign: 'center', display: 'flex', flexDirection: 'column' }}> | ||
<div className='footer-content' style={{textAlign: 'center'}}> | ||
© {new Date().getFullYear()}{' '} | ||
<a href='https://github.com/Arquisoft/wiq_es1c'> | ||
Wiq_es1c. | ||
</a> | ||
<p>All rights reserved. </p> | ||
</div> | ||
</MDBFooter> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { render, screen, act, waitFor } from '@testing-library/react'; | ||
import '@testing-library/jest-dom'; | ||
import { MemoryRouter, BrowserRouter as Router } from 'react-router-dom'; | ||
import { Footer } from './Footer'; | ||
|
||
|
||
describe("Footer component", () => { | ||
beforeEach(() => localStorage.setItem("token", "manolineldelpino")); | ||
|
||
test("renders component",async () => { | ||
render(<MemoryRouter><Footer/></MemoryRouter>); | ||
|
||
await act(async () => {}); | ||
|
||
expect(screen.getByText(/All rights reserved./i)).toBeInTheDocument(); | ||
|
||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.