@carlonicora/nextjs-jsonapi 1.58.1 → 1.58.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "1.58.1",
3
+ "version": "1.58.2",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -291,7 +291,7 @@ describe("ContentListTable", () => {
291
291
  });
292
292
 
293
293
  describe("footer visibility", () => {
294
- it("should show footer when functions are provided", () => {
294
+ it("should show functions in header when title is provided", () => {
295
295
  const dataRetriever = createMockDataRetriever({
296
296
  data: [{ id: "1", title: "Article 1" }],
297
297
  });
@@ -301,11 +301,12 @@ describe("ContentListTable", () => {
301
301
  data={dataRetriever}
302
302
  tableGeneratorType={mockModule as any}
303
303
  fields={["id", "title"]}
304
+ title="Test Table"
304
305
  functions={<button>Action</button>}
305
306
  />,
306
307
  );
307
308
 
308
- // Footer should be present with buttons
309
+ // Functions should be present in header with buttons
309
310
  const buttons = screen.getAllByRole("button");
310
311
  expect(buttons.length).toBeGreaterThan(0);
311
312
  });