forked from sombochea/verdaccio-ui
67d7188cf5
* chore: update material-ui@4.x * test: update test for ActionBar and TestField * chore: add types * chore: update types * test: update test for Author * chore: fixed bunch of unit test * chore: remove unused import * chore: remove comments * chore: replace shallow my mount * chore: update git hooks * chore: fix styles * chore: update dependencies * chore: remove types material-ui
15 lines
346 B
TypeScript
15 lines
346 B
TypeScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
|
|
import Label from './Label';
|
|
|
|
describe('<Label /> component', () => {
|
|
const props = {
|
|
text: 'test',
|
|
};
|
|
test('should render the component in default state', () => {
|
|
const wrapper = mount(<Label text={props.text} />);
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|
|
});
|