@proca/widget
Version:
Proca is an open-source campaign toolkit designed to empower activists and organisations in their digital advocacy efforts. It provides a flexible and customisable platform for creating and managing online petitions, email campaigns, and other forms of di
12 lines (10 loc) • 356 B
JavaScript
import React from "react";
import ReactDOM from "react-dom";
import Widget from "../Widget";
it("renders without crashing", () => {
const div = document.createElement("div");
document.body.append(div);
div.id = "container";
ReactDOM.render(<Widget selector="#container" journey={["Register"]} />, div);
ReactDOM.unmountComponentAtNode(div);
});