{"size": 684, "ext": "js", "max_stars_repo_path": "packages/typography/tests/Disclaimer.test.js", "max_stars_repo_name": "PavanGowda23/availity-react", "max_stars_repo_stars_event_min_datetime": "2016-07-01T01:34:19.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T02:09:48.000Z", "max_issues_repo_path": "packages/typography/tests/Disclaimer.test.js", "max_issues_repo_name": "PavanGowda23/availity-react", "max_issues_repo_issues_event_min_datetime": "2016-04-24T03:57:01.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T20:21:02.000Z", "max_forks_repo_path": "packages/typography/tests/Disclaimer.test.js", "max_forks_repo_name": "PavanGowda23/availity-react", "max_forks_repo_forks_event_min_datetime": "2015-12-04T19:00:49.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-18T13:55:22.000Z"}
{"max_stars_count": 45, "max_issues_count": 835, "max_forks_count": 46, "avg_line_length": 27.36, "max_line_length": 69, "alphanum_fraction": 0.6652046784}
import React from 'react';
import { render, cleanup } from '@testing-library/react';
import { Disclaimer } from '..';

describe('Disclaimer', () => {
  afterEach(cleanup);

  test('should render styled', () => {
    const { getByTestId } = render(<Disclaimer />);

    const container = getByTestId('disclaimer');

    expect(container.className).toContain('disclaimer');
    expect(container.className).not.toContain('disclaimer-unstyled');
  });

  test('should render unstyled', () => {
    const { getByTestId } = render(<Disclaimer styled={false} />);

    const container = getByTestId('disclaimer');

    expect(container.className).toContain('disclaimer-unstyled');
  });
});
