import * as React from "react"; import { mount } from "enzyme"; import Text from "../index"; describe("#Translate", () => { test("render", () => { const wrapper = mount(); expect(wrapper.contains("lol")).toBe(true); }); test("render as span", () => { const wrapper = mount(); // eslint-disable-next-line react/no-danger expect(wrapper.contains()).toBe(true); }); });