"use strict";
var __webpack_exports__ = {};
const external_createDetailsUISchema_js_namespaceObject = require("../createDetailsUISchema.js");
vi.mock('@tachybase/schema', ()=>({
        uid: ()=>'fixed-uid'
    }));
describe('createDetailsBlockWithoutPagingUISchema', ()=>{
    it('should create a valid schema with mandatory fields', ()=>{
        const options = {
            collectionName: 'users',
            dataSource: 'usersDataSource'
        };
        const result = (0, external_createDetailsUISchema_js_namespaceObject.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    ');
    });
});
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
