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