{"size": 428, "ext": "js", "max_stars_repo_path": "Prod.Web/src/components/assessment/35Utbredelseshistorikk/ProgressBar.react-test.js", "max_stars_repo_name": "Artsdatabanken/Fremmedartsbase2023", "max_stars_repo_stars_event_min_datetime": "2021-07-05T11:46:38.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-05T11:46:38.000Z", "max_issues_repo_path": "Prod.Web/src/components/assessment/35Utbredelseshistorikk/ProgressBar.react-test.js", "max_issues_repo_name": "Artsdatabanken/Fremmedartsbase2023", "max_issues_repo_issues_event_min_datetime": "2021-01-21T12:50:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T17:18:32.000Z", "max_forks_repo_path": "Prod.Web/src/components/assessment/35Utbredelseshistorikk/ProgressBar.react-test.js", "max_forks_repo_name": "Artsdatabanken/Fremmedartsbase2023", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 520, "max_forks_count": null, "avg_line_length": 23.7777777778, "max_line_length": 55, "alphanum_fraction": 0.691588785}
import React from 'react'
import renderer from 'react-test-renderer'
import ProgressBar from './ProgressBar'

function assert(targetComponment) {
    const component = renderer.create(targetComponment)
    const tree = component.toJSON()
    expect(tree).toMatchSnapshot()
}

test('Progress bar 0%', () => {
    assert(<ProgressBar percent={0} />)
})

test('Progress bar 100%', () => {
	assert(<ProgressBar percent={100} />)
})
