<commit_before>import React from 'react';
import 'jest-styled-components';
import TestRenderer from 'react-test-renderer';
import { ThemeProvider } from 'styled-components';
import { shallow, mount } from 'enzyme';
import Pill from './pill.component';
import styleConfig from './pill.style.config';
import { classicStyleConfig } from './pill-classic.style';
import { rootTagTest } from '../../utils/helpers/tags/tags-specs/tags-specs';
import { assertStyleMatch } from '../../__spec_helper__/test-utils';
import smallTheme from '../../style/themes/small';
import mediumTheme from '../../style/themes/medium';
import largeTheme from '../../style/themes/large';
import classicTheme from '../../style/themes/classic';
import baseTheme from '../../style/themes/base';
import OptionsHelper from '../../utils/helpers/options-helper';

const classicStyleTypes = [...OptionsHelper.colors, 'disabled'];
const modernStyleTypes = [...OptionsHelper.pillColours, 'warning'];
// const modernRoles = [...OptionsHelper.pillRoles];
const modernThemes = [
  ['small', smallTheme],
  ['medium', mediumTheme],
  ['large', largeTheme]
];

describe('Pill', () => {
  const render = (props, renderer = mount) => {
    return renderer(
      <Pill { ...props } />
    );
  };

  describe('when the children prop is passed to the component', () => {<commit_msg>removed commented code<commit_after>import React from 'react';
import 'jest-styled-components';
import TestRenderer from 'react-test-renderer';
import { ThemeProvider } from 'styled-components';
import { shallow, mount } from 'enzyme';
import Pill from './pill.component';
import styleConfig from './pill.style.config';
import { classicStyleConfig } from './pill-classic.style';
import { rootTagTest } from '../../utils/helpers/tags/tags-specs/tags-specs';
import { assertStyleMatch } from '../../__spec_helper__/test-utils';
import smallTheme from '../../style/themes/small';
import mediumTheme from '../../style/themes/medium';
import largeTheme from '../../style/themes/large';
import classicTheme from '../../style/themes/classic';
import baseTheme from '../../style/themes/base';
import OptionsHelper from '../../utils/helpers/options-helper';

const classicStyleTypes = [...OptionsHelper.colors, 'disabled'];
const modernStyleTypes = [...OptionsHelper.pillColours, 'warning'];
const modernThemes = [
  ['small', smallTheme],
  ['medium', mediumTheme],
  ['large', largeTheme]
];

describe('Pill', () => {
  const render = (props, renderer = mount) => {
    return renderer(
      <Pill { ...props } />
    );
  };

  describe('when the children prop is passed to the component', () => {
{'fraction_non_alphanumeric': 0.1780821917808219, 'fraction_numerical': 0.0, 'mean_word_length': 4.055769230769231, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5264872', 'n_tokens_mistral': 739, 'n_tokens_neox': 746, 'n_words': 201}