Created DomainRow test

This commit is contained in:
Alejandro Celaya 2021-08-24 19:53:28 +02:00
parent 74ac122787
commit ead5f2033b
3 changed files with 59 additions and 3 deletions
test/servers/helpers

View file

@ -1,6 +1,5 @@
import { shallow, ShallowWrapper } from 'enzyme';
import { ServerForm } from '../../../src/servers/helpers/ServerForm';
import { FormGroupContainer } from '../../../src/utils/FormGroupContainer';
describe('<ServerForm />', () => {
let wrapper: ShallowWrapper;
@ -14,7 +13,7 @@ describe('<ServerForm />', () => {
afterEach(jest.resetAllMocks);
it('renders components', () => {
expect(wrapper.find(FormGroupContainer)).toHaveLength(3);
expect(wrapper.find('FormGroup')).toHaveLength(3);
expect(wrapper.find('span')).toHaveLength(1);
});