"use strict";
var __webpack_exports__ = {};
const external_vitest_namespaceObject = require("vitest");
const external_createEditFormBlockUISchema_js_namespaceObject = require("../createEditFormBlockUISchema.js");
external_vitest_namespaceObject.vi.mock('@tachybase/schema', ()=>({
        uid: ()=>'uniqueId'
    }));
describe('createEditFormBlockUISchema', ()=>{
    it('should create a schema with all options', ()=>{
        const schema = (0, external_createEditFormBlockUISchema_js_namespaceObject.createEditFormBlockUISchema)({
            collectionName: 'users',
            dataSource: 'UserDataSource',
            association: 'users:update',
            templateSchema: {
                type: 'string'
            }
        });
        expect(schema).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "uniqueId": {\n            "properties": {\n              "grid": {\n                "type": "string",\n              },\n              "uniqueId": {\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": "editForm:configureActions",\n              },\n            },\n            "type": "void",\n            "x-component": "FormV2",\n            "x-use-component-props": "useEditFormBlockProps",\n          },\n        },\n        "type": "void",\n        "x-acl-action": "users:update:update",\n        "x-acl-action-props": {\n          "skipScopeCheck": false,\n        },\n        "x-component": "CardItem",\n        "x-decorator": "FormBlockProvider",\n        "x-decorator-props": {\n          "action": "get",\n          "association": "users:update",\n          "collection": "users",\n          "dataSource": "UserDataSource",\n        },\n        "x-settings": "blockSettings:editForm",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useEditFormBlockDecoratorProps",\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
});
