{"size": 571, "ext": "js", "max_stars_repo_path": "src/index.test.js", "max_stars_repo_name": "harudev/react-svg-donut-chart", "max_stars_repo_stars_event_min_datetime": "2018-03-30T21:33:10.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-05T17:03:53.000Z", "max_issues_repo_path": "src/index.test.js", "max_issues_repo_name": "harudev/react-svg-donut-chart", "max_issues_repo_issues_event_min_datetime": "2018-07-14T13:41:20.000Z", "max_issues_repo_issues_event_max_datetime": "2019-09-05T19:02:04.000Z", "max_forks_repo_path": "src/index.test.js", "max_forks_repo_name": "harudev/react-svg-donut-chart", "max_forks_repo_forks_event_min_datetime": "2018-04-16T12:07:54.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-03T18:57:25.000Z"}
{"max_stars_count": 9, "max_issues_count": 2, "max_forks_count": 6, "avg_line_length": 25.9545454545, "max_line_length": 77, "alphanum_fraction": 0.6549912434}
import {mount} from "enzyme"
import React from "react"

import DonutChart from "./index"

const data = [
  {value: 100, stroke: "#22594e", strokeWidth: 6},
  {value: 60, stroke: "#2f7d6d"},
  {value: 30, stroke: "#3da18d"},
  {value: 20, stroke: "#69c2b0"},
  {value: 10, stroke: "#a1d9ce"},
]
const DonutChartFixture = <DonutChart data={data} spacing={1} />
const DonutChartWrongSpacingFixture = <DonutChart data={data} spacing={-1} />

describe("DonutChart", () => {
  it("renders", () => {
    mount(DonutChartFixture)
    mount(DonutChartWrongSpacingFixture)
  })
})
