edited tests for no fail and added new Tag test
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {shallow} from "enzyme";
|
||||
import {shallow, mount} from "enzyme";
|
||||
import React from "react";
|
||||
import HomePage from "./HomePage";
|
||||
import VideoContainer from "../../elements/VideoContainer/VideoContainer";
|
||||
@ -23,7 +23,8 @@ describe('<HomePage/>', function () {
|
||||
});
|
||||
|
||||
it('ckeck default tag click events', function () {
|
||||
const wrapper = shallow(<HomePage/>);
|
||||
// todo mount bad here maybe delete this test
|
||||
const wrapper = mount(<HomePage/>);
|
||||
global.fetch = prepareFetchApi({});
|
||||
|
||||
expect(global.fetch).toBeCalledTimes(0);
|
||||
|
@ -99,7 +99,7 @@ describe('<Player/>', function () {
|
||||
|
||||
wrapper.setProps({
|
||||
viewbinding: {
|
||||
hideVideo: () => {
|
||||
returnToLastElement: () => {
|
||||
func()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user