2021-01-02 17:58:24 +07:00
|
|
|
import React from "react";
|
|
|
|
|
2021-08-03 13:25:13 +07:00
|
|
|
import { render } from "@testing-library/react";
|
2021-01-02 17:58:24 +07:00
|
|
|
|
2021-06-19 15:20:43 +07:00
|
|
|
import PieChartIcon from "@components/PieChartIcon";
|
2019-11-25 02:01:58 +07:00
|
|
|
|
2021-01-02 17:58:24 +07:00
|
|
|
it("renders without crashing", () => {
|
2021-08-03 13:25:13 +07:00
|
|
|
render(<PieChartIcon progress={40} />);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("renders maxProgress without crashing", () => {
|
|
|
|
render(<PieChartIcon progress={40} maxProgress={100} />);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("renders width without crashing", () => {
|
|
|
|
render(<PieChartIcon progress={40} width={20} />);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("renders height without crashing", () => {
|
|
|
|
render(<PieChartIcon progress={40} height={20} />);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("renders color without crashing", () => {
|
|
|
|
render(<PieChartIcon progress={40} color="black" />);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("renders backgroundColor without crashing", () => {
|
|
|
|
render(<PieChartIcon progress={40} backgroundColor="white" />);
|
2021-01-02 17:58:24 +07:00
|
|
|
});
|