OpenMediaCenter/src/App.test.js

21 lines
530 B
JavaScript
Raw Normal View History

2020-06-09 18:10:26 +00:00
import React from 'react';
import App from './App';
import {shallow} from 'enzyme'
2020-06-09 18:10:26 +00:00
describe('<App/>', function () {
it('renders without crashing ', function () {
const wrapper = shallow(<App/>);
wrapper.unmount();
2020-06-09 18:10:26 +00:00
});
it('renders title', () => {
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 () {
const wrapper = shallow(<App/>);
expect(wrapper.find('nav').find('li')).toHaveLength(4);
2020-06-09 18:10:26 +00:00
});
});