mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-24 12:15:51 -04:00
13 lines
375 B
TypeScript
13 lines
375 B
TypeScript
import { expect, test } from "bun:test"
|
|
import type { V2SessionHistoryData } from "../src/v2/gen/types.gen"
|
|
|
|
test("uses numeric Session history positions", () => {
|
|
const input = {
|
|
path: { sessionID: "ses_test" },
|
|
query: { after: 1, limit: 50 },
|
|
url: "/api/session/{sessionID}/history",
|
|
} satisfies V2SessionHistoryData
|
|
|
|
expect(input.query.after).toBe(1)
|
|
})
|