import React from 'react'; import App from './App'; import {shallow} from 'enzyme' describe('', function () { it('renders without crashing ', function () { const wrapper = shallow(); wrapper.unmount(); }); it('renders title', () => { const wrapper = shallow(); expect(wrapper.find('.navbar-brand').text()).toBe('OpenMediaCenter'); }); it('are navlinks correct', function () { const wrapper = shallow(); expect(wrapper.find('nav').find('li')).toHaveLength(4); }); });