forked from sombochea/verdaccio-ui
16 lines
405 B
TypeScript
16 lines
405 B
TypeScript
|
import React from 'react';
|
||
|
import { shallow } from 'enzyme';
|
||
|
|
||
|
import TextField from './TextField';
|
||
|
|
||
|
describe('<TextField /> component', () => {
|
||
|
const props = {
|
||
|
name: 'test',
|
||
|
value: 'test',
|
||
|
};
|
||
|
test('should render the component in default state', () => {
|
||
|
const wrapper = shallow(<TextField name={props.name} value={props.value} />);
|
||
|
expect(wrapper.html()).toMatchSnapshot();
|
||
|
});
|
||
|
});
|