mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-28 13:21:42 +00:00
* Add Copy To functionality for notebooks * Fix formatting * Fix linting errors * Fixes * Fix build failure * Rebase and address feedback * Increase test coverage
27 lines
898 B
TypeScript
27 lines
898 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
import { PublishNotebookPaneComponent, PublishNotebookPaneProps } from "./PublishNotebookPaneComponent";
|
|
|
|
describe("PublishNotebookPaneComponent", () => {
|
|
it("renders", () => {
|
|
const props: PublishNotebookPaneProps = {
|
|
notebookName: "SampleNotebook.ipynb",
|
|
notebookDescription: "sample description",
|
|
notebookTags: "tag1, tag2",
|
|
notebookAuthor: "CosmosDB",
|
|
notebookCreatedDate: "2020-07-17T00:00:00Z",
|
|
notebookObject: undefined,
|
|
notebookParentDomElement: undefined,
|
|
onChangeName: undefined,
|
|
onChangeDescription: undefined,
|
|
onChangeTags: undefined,
|
|
onChangeImageSrc: undefined,
|
|
onError: undefined,
|
|
clearFormError: undefined
|
|
};
|
|
|
|
const wrapper = shallow(<PublishNotebookPaneComponent {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|