import { describe, expect, it } from "vitest";

import { ChatHistoryResponseSchema } from "@/data/schemas/chat";

describe("ChatHistoryResponse", () => {
  it("exposes the pagination total and limit used by chat history", () => {
    const response = ChatHistoryResponseSchema.parse({
      messages: [],
      total: 120,
      limit: 50,
      offset: 0,
    });

    expect(response.total).toBe(120);
    expect(response.limit).toBe(50);
  });
});
