ui-neu
Version:
Neu UI, a responsive React component library.
22 lines • 741 B
JavaScript
import React from 'react';
import { act } from 'react-dom/test-utils';
import { render, unmountComponentAtNode } from 'react-dom';
import { FormGroup } from './FormGroup';
describe('FormGroup test suite', function () {
var container = null;
beforeEach(function () {
container = document.createElement('div');
document.body.appendChild(container);
});
afterEach(function () {
unmountComponentAtNode(container);
container.remove();
container = null;
});
it('renders FormGroup children props', function () {
act(function () {
render( /*#__PURE__*/React.createElement(FormGroup, null, "Form group component"), container);
});
expect(container.textContent).toBe('Form group component');
});
});