AkurAI Build
Menu

popagent

public

Latest change 7a8a4e2ba0b7062e5ea31eb88cd856b14c3cfbed - Add workspace chat bulk deletion by AkurAI Build

import { describe, expect, test } from "bun:test";
import { renderToStaticMarkup } from "react-dom/server";
import { WorkspaceChatDeleteDialog } from "./WorkspaceOverview";

describe("WorkspaceChatDeleteDialog", () => {
  test("confirms permanent deletion of active and archived workspace chats", () => {
    const html = renderToStaticMarkup(<WorkspaceChatDeleteDialog
      workspace={{ id: "docs", name: "Docs", repositoryPath: "docs", createdAt: "", updatedAt: "" }}
      deleting={false}
      error=""
      onCancel={() => {}}
      onDelete={() => {}}
    />);

    expect(html).toContain("Delete all chats in “Docs”?");
    expect(html).toContain("active and archived chats");
    expect(html).toContain("Independent long-term memories are retained");
  });
});