1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-27 13:35:32 +07:00
verdaccio-ui/src/muiComponents/TextField/TextField.test.tsx
Priscila Oliveira f84fd79c5b fix: detailContainer Component - Replaced class by func. comp (#130)
* refactor: coverted class comp. into func.comp

* refactor: added forward ref comp.

* fix: fixed external link color

* fix: fixed typo

* refactor: applied feedbacks
2019-10-03 18:17:04 +02:00

16 lines
401 B
TypeScript

import React from 'react';
import { mount } 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 = mount(<TextField name={props.name} value={props.value} />);
expect(wrapper.html()).toMatchSnapshot();
});
});