edited tests for no fail and added new Tag test

This commit is contained in:
2020-06-23 23:13:14 +02:00
parent 89153b5da9
commit 4ac21506f3
4 changed files with 31 additions and 4 deletions

View File

@ -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);

View File

@ -99,7 +99,7 @@ describe('<Player/>', function () {
wrapper.setProps({
viewbinding: {
hideVideo: () => {
returnToLastElement: () => {
func()
}
}