Files
cosmos-explorer/src/Explorer/Controls/CollapsiblePanel/CollapsibleSectionComponent.test.tsx
2021-01-20 09:15:01 -06:00

15 lines
440 B
TypeScript

import { shallow } from "enzyme";
import React from "react";
import { CollapsibleSectionComponent, CollapsibleSectionProps } from "./CollapsibleSectionComponent";
describe("CollapsibleSectionComponent", () => {
it("renders", () => {
const props: CollapsibleSectionProps = {
title: "Sample title",
};
const wrapper = shallow(<CollapsibleSectionComponent {...props} />);
expect(wrapper).toMatchSnapshot();
});
});