AkurAI Build
Menu

popagent

public

Latest change edaab082c8e99fe81e05b43ae23f9f030b90825f - Add memory connection graph by AkurAI Build

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

describe("MemoryFlowGraph", () => {
  test("shows the configured observation, reflection, and recall connections", () => {
    const html = renderToStaticMarkup(<MemoryFlowGraph settings={{
      autoCompact: true,
      observationTokens: 30_000,
      reflectionTokens: 40_000,
      retrievalEnabled: true,
      retrievalScope: "resource",
    }} />);

    expect(html).toContain('aria-label="Memory connection graph"');
    expect(html).toContain("30,000 token observation threshold");
    expect(html).toContain("40,000 token reflection threshold");
    expect(html).toContain("Resource-wide exact history");
  });
});