fix some tests
fix merge issues
This commit is contained in:
@ -1,12 +1,27 @@
|
||||
import {shallow} from 'enzyme';
|
||||
import React from 'react';
|
||||
import ActorPage from './ActorPage';
|
||||
import {ActorPage} from './ActorPage';
|
||||
|
||||
describe('<ActorPage/>', function () {
|
||||
it('renders without crashing ', function () {
|
||||
const wrapper = shallow(<ActorPage actor={{id: 5, name: 'usr1'}}/>);
|
||||
const wrapper = shallow(<ActorPage match={{params: {id: 10}}}/>);
|
||||
wrapper.unmount();
|
||||
});
|
||||
|
||||
it('fetch infos', function () {
|
||||
callAPIMock({
|
||||
videos: [{
|
||||
movie_id: 0,
|
||||
movie_name: 'test'
|
||||
}], info: {
|
||||
thumbnail: '',
|
||||
name: '',
|
||||
actor_id: 0
|
||||
}
|
||||
});
|
||||
|
||||
const wrapper = shallow(<ActorPage match={{params: {id: 10}}}/>);
|
||||
|
||||
expect(wrapper.find('VideoContainer')).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user