"use strict";
var __webpack_exports__ = {};
const external_createFilterCollapseBlockSchema_js_namespaceObject = require("../createFilterCollapseBlockSchema.js");
vi.mock('@formily/shared', ()=>({
        uid: vi.fn().mockReturnValue('mocked-uid')
    }));
describe('createCollapseBlockSchema', ()=>{
    it('should return the correct schema', ()=>{
        const options = {
            collectionName: 'testCollection',
            dataSource: 'testDataSource',
            blockType: 'testBlockType'
        };
        const schema = (0, external_createFilterCollapseBlockSchema_js_namespaceObject.createCollapseBlockSchema)(options);
        expect(schema).toEqual({
            type: 'void',
            'x-decorator': 'AssociationFilter.Provider',
            'x-use-decorator-props': 'useCollapseBlockDecoratorProps',
            'x-decorator-props': {
                collection: 'testCollection',
                dataSource: 'testDataSource',
                blockType: 'testBlockType',
                associationFilterStyle: {
                    width: '100%'
                },
                name: 'filter-collapse'
            },
            'x-toolbar': 'BlockSchemaToolbar',
            'x-settings': 'blockSettings:filterCollapse',
            'x-component': 'CardItem',
            'x-filter-targets': [],
            properties: {
                'mocked-uid': {
                    type: 'void',
                    'x-action': 'associateFilter',
                    'x-initializer': 'filterCollapse:configureFields',
                    'x-component': 'AssociationFilter'
                }
            }
        });
    });
});
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
});
