cabana/src/__tests__/components/PartSelector.test.js

13 lines
372 B
JavaScript

global.__JEST__ = 1;
import PartSelector from "../../components/PartSelector";
import React from "react";
import { shallow, mount, render } from "enzyme";
test("PartSelector successfully mounts with minimal default props", () => {
const component = shallow(
<PartSelector onPartChange={() => {}} partsCount={0} />
);
expect(component.exists()).toBe(true);
});