mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 10:03:51 +00:00
Updated babel packages and extracted babel config
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { shallow, ShallowWrapper } from 'enzyme';
|
||||
import { Mock } from 'ts-mockery';
|
||||
import { Button, ModalHeader } from 'reactstrap';
|
||||
import { Button, FormGroup, ModalHeader } from 'reactstrap';
|
||||
import { ShlinkDomain } from '../../../src/api/types';
|
||||
import { EditDomainRedirectsModal } from '../../../src/domains/helpers/EditDomainRedirectsModal';
|
||||
import { InfoTooltip } from '../../../src/utils/InfoTooltip';
|
||||
@@ -32,7 +32,7 @@ describe('<EditDomainRedirectsModal />', () => {
|
||||
});
|
||||
|
||||
it('expected amount of form groups and tooltips', () => {
|
||||
const formGroups = wrapper.find('FormGroup');
|
||||
const formGroups = wrapper.find(FormGroup);
|
||||
const tooltips = wrapper.find(InfoTooltip);
|
||||
|
||||
expect(formGroups).toHaveLength(3);
|
||||
@@ -50,7 +50,7 @@ describe('<EditDomainRedirectsModal />', () => {
|
||||
});
|
||||
|
||||
it('saves expected values when form is submitted', () => {
|
||||
const formGroups = wrapper.find('FormGroup');
|
||||
const formGroups = wrapper.find(FormGroup);
|
||||
|
||||
expect(editDomainRedirects).not.toHaveBeenCalled();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user