mirror of
https://github.com/SomboChea/ui
synced 2024-06-28 05:55:33 +07:00
* refactor: coverted class comp. into func.comp * refactor: added forward ref comp. * fix: fixed external link color * fix: fixed typo * refactor: applied feedbacks
16 lines
401 B
TypeScript
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();
|
|
});
|
|
});
|