25 lines
546 B
TypeScript
25 lines
546 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
import { Gantt } from "../index";
|
|
|
|
describe("gantt", () => {
|
|
it("renders without crashing", () => {
|
|
const div = document.createElement("div");
|
|
ReactDOM.render(
|
|
<Gantt
|
|
tasks={[
|
|
{
|
|
start: new Date(2020, 0, 1),
|
|
end: new Date(2020, 2, 2),
|
|
name: "Redesign website",
|
|
id: "Task 0",
|
|
progress: 45,
|
|
},
|
|
]}
|
|
/>,
|
|
div
|
|
);
|
|
ReactDOM.unmountComponentAtNode(div);
|
|
});
|
|
});
|