mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-18 06:14:48 +01:00
19 lines
557 B
TypeScript
19 lines
557 B
TypeScript
import React from "react";
|
|
import { shallow } from "enzyme";
|
|
import { GalleryCardComponent, GalleryCardComponentProps } from "./GalleryCardComponent";
|
|
|
|
describe("GalleryCardComponent", () => {
|
|
it("renders", () => {
|
|
const props: GalleryCardComponentProps = {
|
|
name: "mycard",
|
|
url: "url",
|
|
notebookMetadata: undefined,
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
onClick: () => {}
|
|
};
|
|
|
|
const wrapper = shallow(<GalleryCardComponent {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|