import * as __WEBPACK_EXTERNAL_MODULE__createFilterFormBlockSchema_mjs__ from "../createFilterFormBlockSchema.mjs";
vi.mock('@tachybase/schema', ()=>({
        uid: ()=>'mocked-uid'
    }));
describe('createFilterFormBlockSchema', ()=>{
    test('should return the correct schema', ()=>{
        const schema = (0, __WEBPACK_EXTERNAL_MODULE__createFilterFormBlockSchema_mjs__.createFilterFormBlockSchema)({
            collectionName: 'myCollection',
            dataSource: 'myDataSource',
            templateSchema: {
                type: 'string'
            }
        });
        expect(schema).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                    "float": "right",\n                  },\n                },\n                "x-initializer": "filterForm:configureActions",\n              },\n            },\n            "type": "void",\n            "x-component": "FormV2",\n            "x-use-component-props": "useFilterFormBlockProps",\n          },\n        },\n        "type": "void",\n        "x-component": "CardItem",\n        "x-decorator": "FilterFormBlockProvider",\n        "x-decorator-props": {\n          "collection": "myCollection",\n          "dataSource": "myDataSource",\n        },\n        "x-filter-operators": {},\n        "x-filter-targets": [],\n        "x-settings": "blockSettings:filterForm",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useFilterFormBlockDecoratorProps",\n      }\n    ');
    });
    test('should return the correct schema without templateSchema', ()=>{
        const schema = (0, __WEBPACK_EXTERNAL_MODULE__createFilterFormBlockSchema_mjs__.createFilterFormBlockSchema)({
            collectionName: 'myCollection',
            dataSource: 'myDataSource'
        });
        expect(schema).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "mocked-uid": {\n            "properties": {\n              "grid": {\n                "type": "void",\n                "x-component": "Grid",\n                "x-initializer": "filterForm:configureFields",\n              },\n              "mocked-uid": {\n                "type": "void",\n                "x-component": "ActionBar",\n                "x-component-props": {\n                  "layout": "one-column",\n                  "style": {\n                    "float": "right",\n                  },\n                },\n                "x-initializer": "filterForm:configureActions",\n              },\n            },\n            "type": "void",\n            "x-component": "FormV2",\n            "x-use-component-props": "useFilterFormBlockProps",\n          },\n        },\n        "type": "void",\n        "x-component": "CardItem",\n        "x-decorator": "FilterFormBlockProvider",\n        "x-decorator-props": {\n          "collection": "myCollection",\n          "dataSource": "myDataSource",\n        },\n        "x-filter-operators": {},\n        "x-filter-targets": [],\n        "x-settings": "blockSettings:filterForm",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useFilterFormBlockDecoratorProps",\n      }\n    ');
    });
});
