Improved icon used for failing status domains

This commit is contained in:
Alejandro Celaya
2021-12-28 22:54:17 +01:00
parent ecd6e6a066
commit 0268bb6930
3 changed files with 11 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import { shallow, ShallowWrapper } from 'enzyme';
import { UncontrolledTooltip } from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faBan, faCheck, faCircleNotch } from '@fortawesome/free-solid-svg-icons';
import { faTimes, faCheck, faCircleNotch } from '@fortawesome/free-solid-svg-icons';
import { DomainStatus } from '../../../src/domains/data';
import { DomainStatusIcon } from '../../../src/domains/helpers/DomainStatusIcon';
@@ -29,7 +29,7 @@ describe('<DomainStatusIcon />', () => {
it.each([
[
'invalid' as DomainStatus,
faBan,
faTimes,
'Oops! There is some missing configuration, and short URLs shared with this domain will not work.',
],
[ 'valid' as DomainStatus, faCheck, 'Congratulations! This domain is properly configured.' ],