new settingspage sidebar with general and moviesettings

This commit is contained in:
2020-06-25 22:43:26 +02:00
parent afae31618c
commit fdfb36bcd2
6 changed files with 203 additions and 60 deletions

View File

@ -0,0 +1,20 @@
import {shallow} from "enzyme";
import React from "react";
import MovieSettings from "./MovieSettings";
function prepareFetchApi(response) {
const mockJsonPromise = Promise.resolve(response);
const mockFetchPromise = Promise.resolve({
json: () => mockJsonPromise,
});
return (jest.fn().mockImplementation(() => mockFetchPromise));
}
describe('<MovieSettings/>', function () {
it('renders without crashing ', function () {
const wrapper = shallow(<MovieSettings/>);
wrapper.unmount();
});
});