import * as __WEBPACK_EXTERNAL_MODULE__createTableSelectorUISchema_mjs__ from "../createTableSelectorUISchema.mjs";
vi.mock('@formily/shared', ()=>({
        uid: ()=>'mocked-uid'
    }));
describe('createTableSelectorSchema', ()=>{
    test('should return the correct schema', ()=>{
        const schema = (0, __WEBPACK_EXTERNAL_MODULE__createTableSelectorUISchema_mjs__.createTableSelectorUISchema)({
            collectionName: 'example',
            dataSource: 'example',
            rowKey: 'id'
        });
        expect(schema).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "mocked-uid": {\n            "type": "void",\n            "x-component": "ActionBar",\n            "x-component-props": {\n              "style": {\n                "marginBottom": "var(--tb-spacing)",\n              },\n            },\n            "x-initializer": "table:configureActions",\n          },\n          "value": {\n            "type": "array",\n            "x-component": "TableV2.Selector",\n            "x-component-props": {\n              "rowSelection": {\n                "type": "checkbox",\n              },\n            },\n            "x-initializer": "table:configureColumns",\n            "x-use-component-props": "useTableSelectorProps",\n          },\n        },\n        "type": "void",\n        "x-acl-action": "example:list",\n        "x-component": "CardItem",\n        "x-decorator": "TableSelectorProvider",\n        "x-decorator-props": {\n          "action": "list",\n          "collection": "example",\n          "dataSource": "example",\n          "params": {\n            "pageSize": 20,\n          },\n          "rowKey": "id",\n        },\n        "x-settings": "blockSettings:tableSelector",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useTableSelectorDecoratorProps",\n      }\n    ');
    });
});
