Files
openclaw/src/plugin-sdk/session-store-runtime.test.ts
Josh Lehman f1b8827d20 refactor: route bundled plugin session callers through seam (#89129)
Merged via squash.

Prepared head SHA: 7975bc06ac
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
2026-06-14 12:26:53 -07:00

20 lines
653 B
TypeScript

import { describe, expect, it } from "vitest";
import {
listSessionEntries as listAccessorSessionEntries,
loadSessionEntry,
readSessionUpdatedAt as readAccessorSessionUpdatedAt,
} from "../config/sessions/session-accessor.js";
import {
getSessionEntry,
listSessionEntries,
readSessionUpdatedAt,
} from "./session-store-runtime.js";
describe("session-store-runtime", () => {
it("routes read helpers through the session accessor seam", () => {
expect(getSessionEntry).toBe(loadSessionEntry);
expect(listSessionEntries).toBe(listAccessorSessionEntries);
expect(readSessionUpdatedAt).toBe(readAccessorSessionUpdatedAt);
});
});