new settingspage sidebar with general and moviesettings
This commit is contained in:
20
src/pages/SettingsPage/MovieSettings.test.js
Normal file
20
src/pages/SettingsPage/MovieSettings.test.js
Normal 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();
|
||||
});
|
||||
|
||||
|
||||
});
|
Reference in New Issue
Block a user