-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raul Andrade
committed
Mar 10, 2022
1 parent
52846a9
commit aadf98c
Showing
5 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
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,16 @@ | ||
import { render, screen } from '@testing-library/react' | ||
import { Footer } from './footer' | ||
|
||
describe('<Footer/>', () => { | ||
it('should be render a Footer component', () => { | ||
render(<Footer />) | ||
|
||
expect(screen.getByText(/created with by/i)).toBeInTheDocument() | ||
expect(screen.getByText(/♥️/i)).toBeInTheDocument() | ||
expect( | ||
screen.getByRole('link', { | ||
name: /raul andrade/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export const Footer = () => { | ||
return ( | ||
<footer className="pb-6 flex justify-center font-thin dark:text-gray-300 text-gray-700"> | ||
<p> | ||
{`Created with `} | ||
<span className="text-rose-600">♥️</span> | ||
{` by `} | ||
<a | ||
className="border-b-blue-500 text-blue-500 hover:border-b-[1px]" | ||
href="https://github.com/andraderaul" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Raul Andrade | ||
</a> | ||
</p> | ||
</footer> | ||
) | ||
} |
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 @@ | ||
export { Footer } from './footer' |
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
aadf98c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: