import { expect, test } from "vitest";

import { api } from "../api/client";

test("default handler serves the objects page", async () => {
  const { data } = await api.GET("/api/admin/objects", { params: { query: {} } });

  expect(data?.total).toBe(2);
  expect(data?.items[0].object_number).toBe("LM-0042");
});
