add option to enable disable the tmdb support

This commit is contained in:
lukas committed 2020-07-18 01:10:04 +02:00
1 parent 8b89db6d5c
commit 1d9cf31f13
7 files changed
+98 -13

No files matched your search

@@ -110,4 +110,21 @@ describe('<CategoryPage/>', function () {
expect(func).toBeCalledTimes(1);
});
it('test sidebar tag clicks', function () {
const func = jest.fn();
const wrapper = mount(<CategoryPage category="fullhd"/>);
wrapper.instance().loadTag = func;
console.log(wrapper.debug());
expect(func).toBeCalledTimes(0);
wrapper.find("SideBar").find("Tag").forEach(e => {
e.simulate("click");
})
expect(func).toBeCalledTimes(4);
});
});