raviqqe/self-talk

View on GitHub
src/infrastructure/react/UpdateDocument.test.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import { render } from "@testing-library/react";
import { expect, it } from "vitest";
import { UpdateDocument } from "./UpdateDocument.js";

it("renders", () => {
  expect(
    render(
      <UpdateDocument
        document={{ id: "", text: "" }}
        insertFiles={async () => ""}
        updateDocument={async () => {}}
      />,
    ).container.firstChild,
  ).toMatchSnapshot();
});