{"size": 671, "ext": "js", "max_stars_repo_path": "client/test/app/queue/substituteAppellant/tasks/ScheduleHearingTaskAlert.test.js", "max_stars_repo_name": "ThorntonMatthewD/caseflow", "max_stars_repo_stars_event_min_datetime": "2015-10-16T14:25:19.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-23T17:43:26.000Z", "max_issues_repo_path": "client/test/app/queue/substituteAppellant/tasks/ScheduleHearingTaskAlert.test.js", "max_issues_repo_name": "ThorntonMatthewD/caseflow", "max_issues_repo_issues_event_min_datetime": "2015-10-16T14:01:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T21:57:00.000Z", "max_forks_repo_path": "client/test/app/queue/substituteAppellant/tasks/ScheduleHearingTaskAlert.test.js", "max_forks_repo_name": "ThorntonMatthewD/caseflow", "max_forks_repo_forks_event_min_datetime": "2015-10-16T14:20:39.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-22T13:40:52.000Z"}
{"max_stars_count": 159, "max_issues_count": 13775, "max_forks_count": 60, "avg_line_length": 23.9642857143, "max_line_length": 104, "alphanum_fraction": 0.652757079}
import React from 'react';
import { render } from '@testing-library/react';

import { axe } from 'jest-axe';

import { ScheduleHearingTaskAlert } from 'app/queue/substituteAppellant/tasks/ScheduleHearingTaskAlert';

describe('ScheduleHearingTaskAlert', () => {
  const defaults = {};

  const setup = (props) =>
    render(<ScheduleHearingTaskAlert {...defaults} {...props} />);

  it('renders correctly', () => {
    const { container } = setup();

    expect(container).toMatchSnapshot();
  });

  it('passes a11y testing', async () => {
    const { container } = setup();

    const results = await axe(container);

    expect(results).toHaveNoViolations();
  });
});
