import * as __WEBPACK_EXTERNAL_MODULE_vitest__ from "vitest";
import * as __WEBPACK_EXTERNAL_MODULE__createEditFormBlockUISchema_mjs__ from "../createEditFormBlockUISchema.mjs";
__WEBPACK_EXTERNAL_MODULE_vitest__.vi.mock('@tachybase/schema', ()=>({
        uid: ()=>'uniqueId'
    }));
describe('createEditFormBlockUISchema', ()=>{
    it('should create a schema with all options', ()=>{
        const schema = (0, __WEBPACK_EXTERNAL_MODULE__createEditFormBlockUISchema_mjs__.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    ');
    });
});
