mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-13 19:55:15 +00:00
20 lines
674 B
TypeScript
20 lines
674 B
TypeScript
|
import { shallow } from "enzyme";
|
||
|
import React from "react";
|
||
|
import { PromptCard } from "./PromptCard";
|
||
|
|
||
|
describe("Prompt card snapshot test", () => {
|
||
|
it("should render properly if isSelected is true", () => {
|
||
|
const wrapper = shallow(
|
||
|
<PromptCard header="TestHeader" description="TestDescription" isSelected={true} onSelect={() => undefined} />
|
||
|
);
|
||
|
expect(wrapper).toMatchSnapshot();
|
||
|
});
|
||
|
|
||
|
it("should render properly if isSelected is false", () => {
|
||
|
const wrapper = shallow(
|
||
|
<PromptCard header="TestHeader" description="TestDescription" isSelected={false} onSelect={() => undefined} />
|
||
|
);
|
||
|
expect(wrapper).toMatchSnapshot();
|
||
|
});
|
||
|
});
|