raviqqe/self-talk

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

Summary

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

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