<commit_before>import React from 'react';
import { shallow } from 'enzyme';
import Section from './section';

describe('Section', () => {
  let wrapper, children;

  beforeEach(() => {
    wrapper = shallow(
      <Section
        className='my__custom-class'
        title="My Section Title"
      >
        <p>This is some content</p>
      </Section>
    );
  });

  it('renders with main and custom classes', () => {
    expect(wrapper.find('.carbon-section')).toBeTruthy()
    expect(wrapper.find('.my__custom-class')).toBeTruthy()
  });

  it('renders a title', () => {
    let title = wrapper.find('.carbon-section__title')
    expect(title.text()).toEqual('My Section Title')
  });

  it('renders the children content', () => {
    expect(wrapper.contains(<p>This is some content</p>)).toBeTruthy();
  });
});<commit_msg>Correct BEM class in spec<commit_after>import React from 'react';
import { shallow } from 'enzyme';
import Section from './section';

describe('Section', () => {
  let wrapper, children;

  beforeEach(() => {
    wrapper = shallow(
      <Section
        className='my-custom-class'
        title="My Section Title"
      >
        <p>This is some content</p>
      </Section>
    );
  });

  it('renders with main and custom classes', () => {
    expect(wrapper.find('.carbon-section')).toBeTruthy()
    expect(wrapper.find('.my-custom-class')).toBeTruthy()
  });

  it('renders a title', () => {
    let title = wrapper.find('.carbon-section__title')
    expect(title.text()).toEqual('My Section Title')
  });

  it('renders the children content', () => {
    expect(wrapper.contains(<p>This is some content</p>)).toBeTruthy();
  });
});
{'fraction_non_alphanumeric': 0.18345323741007194, 'fraction_numerical': 0.0, 'mean_word_length': 3.268542199488491, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 25, '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': '2251537', 'n_tokens_mistral': 517, 'n_tokens_neox': 503, 'n_words': 112}