mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-28 21:32:05 +00:00
* Enable gallery publishing in MPAC * Address feedback * Use ENABLE_GALLERY_PUBLISH config in standalone gallery * Fix test
23 lines
734 B
TypeScript
23 lines
734 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
import { GalleryViewerComponent, GalleryViewerComponentProps, GalleryTab, SortBy } from "./GalleryViewerComponent";
|
|
|
|
describe("GalleryViewerComponent", () => {
|
|
it("renders", () => {
|
|
const props: GalleryViewerComponentProps = {
|
|
isGalleryPublishEnabled: false,
|
|
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();
|
|
});
|
|
});
|