Tests for all Components
This commit is contained in:
@@ -3,18 +3,18 @@ import App from './App';
|
||||
import {shallow} from 'enzyme'
|
||||
|
||||
describe('<App/>', function () {
|
||||
it('renders without crashing ', function () {
|
||||
const wrapper = shallow(<App/>);
|
||||
wrapper.unmount();
|
||||
});
|
||||
it('renders without crashing ', function () {
|
||||
const wrapper = shallow(<App/>);
|
||||
wrapper.unmount();
|
||||
});
|
||||
|
||||
it('renders title', () => {
|
||||
const wrapper = shallow(<App/>);
|
||||
expect(wrapper.find('.navbar-brand').text()).toBe('OpenMediaCenter');
|
||||
});
|
||||
it('renders title', () => {
|
||||
const wrapper = shallow(<App/>);
|
||||
expect(wrapper.find('.navbar-brand').text()).toBe('OpenMediaCenter');
|
||||
});
|
||||
|
||||
it('are navlinks correct', function () {
|
||||
const wrapper = shallow(<App/>);
|
||||
expect(wrapper.find('nav').find('li')).toHaveLength(4);
|
||||
});
|
||||
it('are navlinks correct', function () {
|
||||
const wrapper = shallow(<App/>);
|
||||
expect(wrapper.find('nav').find('li')).toHaveLength(4);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user