Migrated Home test to react testing library

This commit is contained in:
Alejandro Celaya
2022-05-03 20:15:22 +02:00
parent bc3bc8dd8a
commit 29182ae349
3 changed files with 27 additions and 35 deletions

View File

@@ -10,11 +10,11 @@ import { ServersMap } from '../servers/data';
import { ShlinkLogo } from './img/ShlinkLogo';
import './Home.scss';
export interface HomeProps {
interface HomeProps {
servers: ServersMap;
}
const Home = ({ servers }: HomeProps) => {
export const Home = ({ servers }: HomeProps) => {
const navigate = useNavigate();
const serversList = values(servers);
const hasServers = !isEmpty(serversList);
@@ -65,5 +65,3 @@ const Home = ({ servers }: HomeProps) => {
</div>
);
};
export default Home;