mirror of
https://github.com/SomboChea/ui
synced 2024-09-29 21:07:47 +07:00
15 lines
380 B
TypeScript
15 lines
380 B
TypeScript
|
import React from 'react';
|
||
|
import { shallow } from 'enzyme';
|
||
|
|
||
|
import Link from './Link';
|
||
|
|
||
|
describe('<Link /> component', () => {
|
||
|
const props = {
|
||
|
to: 'https://github.com/verdaccio/ui',
|
||
|
};
|
||
|
test('should render the component in default state', () => {
|
||
|
const wrapper = shallow(<Link blank={true} to={props.to} />);
|
||
|
expect(wrapper.html()).toMatchSnapshot();
|
||
|
});
|
||
|
});
|