2020-06-09 18:10:26 +00:00
|
|
|
import React from 'react';
|
|
|
|
import App from './App';
|
2020-06-10 13:41:41 +00:00
|
|
|
import {shallow} from 'enzyme'
|
2020-06-09 18:10:26 +00:00
|
|
|
|
|
|
|
describe('<App/>', function () {
|
|
|
|
it('renders without crashing ', function () {
|
2020-06-10 13:41:41 +00:00
|
|
|
const wrapper = shallow(<App/>);
|
|
|
|
wrapper.unmount();
|
2020-06-09 18:10:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('renders title', () => {
|
2020-06-10 13:41:41 +00:00
|
|
|
const wrapper = shallow(<App/>);
|
|
|
|
expect(wrapper.find('.navbar-brand').text()).toBe('OpenMediaCenter');
|
2020-06-09 18:10:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('are navlinks correct', function () {
|
2020-06-10 13:41:41 +00:00
|
|
|
const wrapper = shallow(<App/>);
|
|
|
|
expect(wrapper.find('nav').find('li')).toHaveLength(4);
|
2020-06-09 18:10:26 +00:00
|
|
|
});
|
|
|
|
});
|