mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-27 12:51:41 +00:00
22 lines
696 B
TypeScript
22 lines
696 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
import { GalleryViewerComponent, GalleryViewerComponentProps, GalleryTab, SortBy } from "./GalleryViewerComponent";
|
|
|
|
describe("GalleryViewerComponent", () => {
|
|
it("renders", () => {
|
|
const props: GalleryViewerComponentProps = {
|
|
junoClient: undefined,
|
|
selectedTab: GalleryTab.OfficialSamples,
|
|
sortBy: SortBy.MostViewed,
|
|
searchText: undefined,
|
|
openNotebook: undefined,
|
|
onSelectedTabChange: undefined,
|
|
onSortByChange: undefined,
|
|
onSearchTextChange: undefined,
|
|
};
|
|
|
|
const wrapper = shallow(<GalleryViewerComponent {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|