add style for actor tiles
render actors got from backend backend test code to get actors
This commit is contained in:
@ -64,10 +64,8 @@ class Preview extends React.Component {
|
||||
itemClick() {
|
||||
console.log('item clicked!' + this.state.name);
|
||||
|
||||
this.props.viewbinding.changeRootElement(
|
||||
<Player
|
||||
viewbinding={this.props.viewbinding}
|
||||
movie_id={this.props.movie_id}/>);
|
||||
GlobalInfos.getViewBinding().changeRootElement(
|
||||
<Player movie_id={this.props.movie_id}/>);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,13 +20,7 @@ describe('<Preview/>', function () {
|
||||
const func = jest.fn();
|
||||
|
||||
const wrapper = shallow(<Preview/>);
|
||||
wrapper.setProps({
|
||||
viewbinding: {
|
||||
changeRootElement: () => {
|
||||
func();
|
||||
}
|
||||
}
|
||||
});
|
||||
prepareViewBinding(func);
|
||||
|
||||
wrapper.find('.videopreview').simulate('click');
|
||||
|
||||
|
Reference in New Issue
Block a user