2019-09-08 16:10:03 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { mount } from 'enzyme';
|
2019-12-04 09:36:13 +00:00
|
|
|
import Text from '.';
|
2019-09-08 16:10:03 +00:00
|
|
|
|
|
|
|
describe('<Text />', () => {
|
|
|
|
it('renders without error', () => {
|
|
|
|
const wrapper = mount(
|
2019-12-04 09:36:13 +00:00
|
|
|
<Text as='p' title='Some title'>
|
2019-09-08 16:10:03 +00:00
|
|
|
Some text
|
2019-12-04 09:36:13 +00:00
|
|
|
</Text>
|
2019-09-08 16:10:03 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
expect(wrapper).toExist();
|
|
|
|
});
|
|
|
|
});
|