<commit_before>import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';

import { Page, Button } from '../src';

it('Page has title', function() {
  const component = shallow(<Page title='text'/>);
  expect(component.find('h1').hasClass('al-title')).to.equal(true);
});

it('Page does not have title', function() {
  const component = shallow(<Page/>);
  expect(component.find('h1')).to.have.length(0);
});

it('Title text is being rendered', function() {
  const component = shallow(<Page title='Testing text'/>);
  expect(component.find('h1').text()).to.equal('Testing text');
});

it('Action bar renders text', function() {
  const component = shallow(<Page actionBar='Testing text'/>);
  expect(component.containsMatchingElement('Testing text')).to.equal(true);
});


it('Action bar renders elements', function() {
  const button = <Button />;
  const component = shallow(<Page actionBar={button}/>);
  expect(component.containsMatchingElement(button)).to.equal(true);
});<commit_msg>Page Test - changes<commit_after>import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';

import { Page, Button } from '../src';

describe('<Page/>', function() {
  it('Page has title', function() {
    const component = shallow(<Page title='text'/>);
    expect(component.find('h1').hasClass('al-title')).to.equal(true);
  });

  it('Page does not have title', function() {
    const component = shallow(<Page/>);
    expect(component.find('h1')).to.have.length(0);
  });

  it('Title text is being rendered', function() {
    const component = shallow(<Page title='Testing text'/>);
    expect(component.find('h1').text()).to.equal('Testing text');
  });

  it('Action bar renders text', function() {
    const component = shallow(<Page actionBar='Testing text'/>);
    expect(component.containsMatchingElement('Testing text')).to.equal(true);
  });

  it('Action bar renders elements', function() {
    const button = <Button />;
    const component = shallow(<Page actionBar={button}/>);
    expect(component.containsMatchingElement(button)).to.equal(true);
  });

  it('Renders children', function() {
    const component = shallow(<Page/>);
    expect(component.children()).to.have.length(1);
  });
});
{'fraction_non_alphanumeric': 0.19300575475874282, 'fraction_numerical': 0.00398406374501992, 'mean_word_length': 4.994694960212201, 'pattern_counts': {'":': 0, '<': 17, '<?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': '3663323', 'n_tokens_mistral': 681, 'n_tokens_neox': 662, 'n_words': 159}