fga-eps-mds/2019.1-unbrake

View on GitHub
unbrake-frontend/src/tests/Calibration/Vibration.test.jsx

Summary

Maintainability
A
3 hrs
Test Coverage
import React from "react";
import { createStore } from "redux";
import { Provider } from "react-redux";
import Enzyme, { shallow } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import reducers from "../../reducer/index";
import Vibration from "../../calibration/Vibration";
import ComponentTest from "../ComponentTest";

Enzyme.configure({ adapter: new Adapter() });

describe("<Vibration />", () => {
  const context = React.createContext();
  const store = createStore(reducers);
  const wrapper = shallow(
    <Provider context={context} store={store}>
      <Vibration context={context} />
    </Provider>
  );
  ComponentTest(wrapper);
});