Migrated UseExistingIfFoundInfoIcon test from enzyme to react testing library

This commit is contained in:
Alejandro Celaya
2022-05-02 18:54:19 +02:00
parent e837ee5225
commit c00aaa9018
3 changed files with 9 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ import { SelectedServer } from '../servers/data';
import { TagsSelectorProps } from '../tags/helpers/TagsSelector';
import { DomainSelectorProps } from '../domains/DomainSelector';
import { formatIsoDate } from '../utils/helpers/date';
import UseExistingIfFoundInfoIcon from './UseExistingIfFoundInfoIcon';
import { UseExistingIfFoundInfoIcon } from './UseExistingIfFoundInfoIcon';
import { ShortUrlData } from './data';
import { ShortUrlFormCheckboxGroup } from './helpers/ShortUrlFormCheckboxGroup';
import './ShortUrlForm.scss';

View File

@@ -36,7 +36,7 @@ const InfoModal = ({ isOpen, toggle }: { isOpen: boolean; toggle: () => void })
</Modal>
);
const UseExistingIfFoundInfoIcon = () => {
export const UseExistingIfFoundInfoIcon = () => {
const [isModalOpen, toggleModal] = useToggle();
return (
@@ -48,5 +48,3 @@ const UseExistingIfFoundInfoIcon = () => {
</>
);
};
export default UseExistingIfFoundInfoIcon;