"use strict";
var __webpack_exports__ = {};
const external_createCreateFormBlockUISchema_js_namespaceObject = require("../createCreateFormBlockUISchema.js");
vi.mock('@tachybase/schema', ()=>({
        uid: ()=>'mocked-uid'
    }));
describe('createCreateFormBlockUISchema', ()=>{
    it('should create a schema with all options', ()=>{
        const options = {
            collectionName: 'users',
            dataSource: 'userDataSource',
            association: 'userAssociation',
            templateSchema: {
                type: 'string'
            },
            isCusomeizeCreate: true
        };
        const result = (0, external_createCreateFormBlockUISchema_js_namespaceObject.createCreateFormBlockUISchema)(options);
        expect(result).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "mocked-uid": {\n            "properties": {\n              "grid": {\n                "type": "string",\n              },\n              "mocked-uid": {\n                "type": "void",\n                "x-component": "ActionBar",\n                "x-component-props": {\n                  "layout": "one-column",\n                  "style": {\n                    "marginTop": 24,\n                  },\n                },\n                "x-initializer": "createForm:configureActions",\n              },\n            },\n            "type": "void",\n            "x-component": "FormV2",\n            "x-use-component-props": "useCreateFormBlockProps",\n          },\n        },\n        "type": "void",\n        "x-acl-action": "userAssociation:create",\n        "x-acl-action-props": {\n          "skipScopeCheck": true,\n        },\n        "x-component": "CardItem",\n        "x-decorator": "FormBlockProvider",\n        "x-decorator-props": {\n          "association": "userAssociation",\n          "collection": "users",\n          "dataSource": "userDataSource",\n          "isCusomeizeCreate": true,\n        },\n        "x-settings": "blockSettings:createForm",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useCreateFormBlockDecoratorProps",\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
});
