import React from 'react';
import {shallow} from 'enzyme';
import PageTitle, {Line} from './PageTitle';
describe('', function () {
it('renders without crashing ', function () {
const wrapper = shallow();
wrapper.unmount();
});
it('renders childs correctly', function () {
const wrapper = shallow(heyimachild);
const children = wrapper.children();
expect(children.at(children.length - 2).text()).toBe('heyimachild');
});
it('renders pagetitle prop', function () {
const wrapper = shallow();
expect(wrapper.find('.pageheader').text()).toBe('testtitle');
});
it('renders subtitle prop', function () {
const wrapper = shallow();
expect(wrapper.find('.pageheadersubtitle').text()).toBe('testsubtitle');
});
});
describe('', () => {
it('renders without crashing', function () {
const wrapper = shallow();
wrapper.unmount();
});
});