From 38508204b3d2b360b36cc1e0784bdf2c008acec9 Mon Sep 17 00:00:00 2001 From: Eirik Ola Aksnes Date: Fri, 27 Oct 2023 17:22:20 +0200 Subject: [PATCH] test: uncontained list --- .../plugins/list/task_list/task.recipe.json | 3 +- .../src/plugins/table/TestUseListPlugin.tsx | 2 +- .../dm-core-plugins/src/list/ListPlugin.tsx | 1 - packages/dm-core/package.json | 4 +- packages/dm-core/src/hooks/useList.test.tsx | 1017 +++++++++++------ packages/dm-core/src/hooks/useList.tsx | 125 +- .../dm-core/src/utils/test-utils-dm-core.tsx | 17 +- 7 files changed, 724 insertions(+), 445 deletions(-) diff --git a/example/app/data/DemoDataSource/recipes/plugins/list/task_list/task.recipe.json b/example/app/data/DemoDataSource/recipes/plugins/list/task_list/task.recipe.json index 6bd7e28fe..41ccaa3dd 100644 --- a/example/app/data/DemoDataSource/recipes/plugins/list/task_list/task.recipe.json +++ b/example/app/data/DemoDataSource/recipes/plugins/list/task_list/task.recipe.json @@ -58,8 +58,7 @@ "selectFromScope": "dmss://DemoDataSource/plugins/list/task_list", "headers": [ "name", - "assigned", - "address" + "assigned" ], "functionality": { "type": "PLUGINS:dm-core-plugins/list/FunctionalityConfig", diff --git a/example/src/plugins/table/TestUseListPlugin.tsx b/example/src/plugins/table/TestUseListPlugin.tsx index 64b422647..7196dee43 100644 --- a/example/src/plugins/table/TestUseListPlugin.tsx +++ b/example/src/plugins/table/TestUseListPlugin.tsx @@ -70,7 +70,7 @@ const TestUseListPlugin = (props: IUIPlugin) => { }} /> {attribute && attribute.contained && ( - + )} {dirtyState && }