mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-24 03:11:32 +00:00
* Add Security Warning Bar for untrusted notebooks * Update * Another update * Add a snapshot test * UX updates * More updates * Add tests * Update test snapshot * Update string * Update security message
28 lines
673 B
TypeScript
28 lines
673 B
TypeScript
import { shallow } from "enzyme";
|
|
import { PassedPromptProps } from "./Prompt";
|
|
import { promptContent } from "./PromptContent";
|
|
|
|
describe("PromptContent", () => {
|
|
it("renders for busy status", () => {
|
|
const props: PassedPromptProps = {
|
|
id: "id",
|
|
contentRef: "contentRef",
|
|
status: "busy",
|
|
};
|
|
const wrapper = shallow(promptContent(props));
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
|
|
it("renders when hovered", () => {
|
|
const props: PassedPromptProps = {
|
|
id: "id",
|
|
contentRef: "contentRef",
|
|
isHovered: true,
|
|
};
|
|
const wrapper = shallow(promptContent(props));
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|