// @flow
import React from 'react';
import { renderSnapshot, itIsAccessible } from '../../../../utils/tests';
import type { CircularProgressBarProps } from './circular-progress-bar.proptypes';
import { CircularProgressBar } from './index';

const DEFAULT_PROPS: CircularProgressBarProps = {
  percentage: 50,
};

describe('CircularProgressBar', () => {
  describe('snapshot', () => {
    it('matches the previous snapshot', () => {
      const circularProgressBar = renderSnapshot(
        <CircularProgressBar {...DEFAULT_PROPS} />,
      );

      expect(circularProgressBar).toMatchSnapshot();
    });
  });

  itIsAccessible(<CircularProgressBar {...DEFAULT_PROPS} />);
});
