<commit_before>import React from 'react';
import { mount } from 'enzyme';
import Badge from './badge.component';
import Button from '../button';
import { StyledCounter } from './badge.style';

const renderComponent = (props = {}) => (
  <Badge { ...props }>
    <Button buttonType='primary'>Button</Button>
  </Badge>
);

const BADGE = '[data-element="badge-component"]';

describe('Badge', () => {
  it('should render correctly', () => {
    const wrapper = mount(renderComponent({ counter: 1 }));

    expect(wrapper.find(BADGE).exists()).toBe(true);
  });
<commit_msg>feat(badge): add new component<commit_after>import React from 'react';
import { mount } from 'enzyme';
import Badge from './badge.component';
import Button from '../button';
import { StyledCounter } from './badge.style';

const renderComponent = (props = {}) => (
  <Badge { ...props }>
    <Button buttonType='primary'>Button</Button>
  </Badge>
);

const BADGE = '[data-component="badge"]';

describe('Badge', () => {
  it('should render correctly', () => {
    const wrapper = mount(renderComponent({ counter: 1 }));

    expect(wrapper.find(BADGE).exists()).toBe(true);
  });

{'fraction_non_alphanumeric': 0.19808861859252824, 'fraction_numerical': 0.0017376194613379669, 'mean_word_length': 4.358139534883721, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '7569889', 'n_tokens_mistral': 360, 'n_tokens_neox': 353, 'n_words': 85}