Farmbot-Web-App/frontend/__test_support__/svg_mount.tsx

7 lines
161 B
TypeScript
Raw Normal View History

2019-06-05 14:48:18 -06:00
import * as React from "react";
import { mount } from "enzyme";
export function svgMount(element: React.ReactElement) {
return mount(<svg>{element}</svg>);
}