<commit_before>import 'react-native';
import React from 'react';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
import BusListHeader from '../BusListHeader';

jest.mock('react-native-localization');

describe('BusListHeader component', () => {
  it('renders correctly', () => {
    const tree = renderer.create(<BusListHeader />).toJSON();

    expect(tree).toMatchSnapshot();
  });
});<commit_msg>added tests for RouteListHeader<commit_after>import 'react-native';
import React from 'react';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
import BusListHeader, { RouteListHeader } from '../BusListHeader';

jest.mock('react-native-localization');

describe('BusListHeader component', () => {
  it('renders correctly', () => {
    const tree = renderer.create(<BusListHeader />).toJSON();

    expect(tree).toMatchSnapshot();
  });
});

describe('RouteListHeader component', () => {
    it('renders correctly', () => {
        const tree = renderer.create(<RouteListHeader />).toJSON();

        expect(tree).toMatchSnapshot();
    });
});
{'fraction_non_alphanumeric': 0.16825672159583693, 'fraction_numerical': 0.0, 'mean_word_length': 4.741293532338308, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, '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': '7146717', 'n_tokens_mistral': 335, 'n_tokens_neox': 325, 'n_words': 77}