fga-eps-mds/2019.1-unbrake

View on GitHub
unbrake-frontend/src/tests/ComponentTest.js

Summary

Maintainability
A
0 mins
Test Coverage
import toJson from "enzyme-to-json";
import Adapter from "enzyme-adapter-react-16";
import Enzyme from "enzyme";

Enzyme.configure({ adapter: new Adapter() });
const componentTest = wrapper => {
  describe("render()", () => {
    test("renders the component", () => {
      const component = wrapper.dive();

      expect(toJson(component)).toMatchSnapshot();
    });
  });
};
export default componentTest;