import * as __WEBPACK_EXTERNAL_MODULE__createDetailsUISchema_mjs__ from "../createDetailsUISchema.mjs";
vi.mock('@formily/shared', ()=>({
        uid: ()=>'fixed-uid'
    }));
describe('createDetailsBlockWithoutPagingUISchema', ()=>{
    it('should create a valid schema with mandatory fields', ()=>{
        const options = {
            collectionName: 'users',
            dataSource: 'usersDataSource'
        };
        const result = (0, __WEBPACK_EXTERNAL_MODULE__createDetailsUISchema_mjs__.createDetailsUISchema)(options);
        expect(result).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "fixed-uid": {\n            "properties": {\n              "fixed-uid": {\n                "properties": {},\n                "type": "void",\n                "x-component": "ActionBar",\n                "x-component-props": {\n                  "style": {\n                    "marginBottom": 24,\n                  },\n                },\n                "x-initializer": "details:configureActions",\n              },\n              "grid": {\n                "properties": {},\n                "type": "void",\n                "x-component": "Grid",\n                "x-initializer": "details:configureFields",\n              },\n            },\n            "type": "void",\n            "x-component": "Details",\n            "x-read-pretty": true,\n            "x-use-component-props": "useDetailsProps",\n          },\n        },\n        "type": "void",\n        "x-acl-action": "users:get",\n        "x-component": "CardItem",\n        "x-decorator": "DetailsBlockProvider",\n        "x-decorator-props": {\n          "action": "get",\n          "association": undefined,\n          "collection": "users",\n          "dataSource": "usersDataSource",\n          "readPretty": true,\n        },\n        "x-settings": "blockSettings:details",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useDetailsDecoratorProps",\n      }\n    ');
    });
});
