CustomerDetails.test.tsx 438 B

123456789101112
  1. import { render, getMockContextProps } from "@stripe/ui-extension-sdk/testing";
  2. import { ContextView } from "@stripe/ui-extension-sdk/ui";
  3. import CustomerDetails from "./CustomerDetails";
  4. describe("CustomerDetailsView", () => {
  5. it("renders ContextView", () => {
  6. const { wrapper } = render(<CustomerDetails {...getMockContextProps()} />);
  7. expect(wrapper.find(ContextView)).toContainText("save to reload this view");
  8. });
  9. });