@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
|
@@ -291,7 +291,7 @@ describe("ContentListTable", () => {
|
|
|
291
291
|
});
|
|
292
292
|
|
|
293
293
|
describe("footer visibility", () => {
|
|
294
|
-
it("should show
|
|
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
|
-
//
|
|
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
|
});
|