"use strict";
var __webpack_exports__ = {};
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
require("react");
const client_namespaceObject = require("@tachybase/test/client");
const external_appInfo_js_namespaceObject = require("../../../../../../../../../appInfo.js");
const index_js_namespaceObject = require("../../../schema-component/antd/checkbox/index.js");
const input_index_js_namespaceObject = require("../../../schema-component/antd/input/index.js");
const SchemaComponent_js_namespaceObject = require("../../../schema-component/core/SchemaComponent.js");
const SchemaComponentProvider_js_namespaceObject = require("../../../schema-component/core/SchemaComponentProvider.js");
const external_json_js_namespaceObject = require("../json.js");
const Component = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaComponentProvider_js_namespaceObject.SchemaComponentProvider, {
        components: {
            Input: input_index_js_namespaceObject.Input,
            Checkbox: index_js_namespaceObject.Checkbox
        },
        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaComponent_js_namespaceObject.SchemaComponent, {
            schema: external_json_js_namespaceObject.json
        })
    });
describe('JSON', ()=>{
    it('should show JSONB when dialect is postgres', async ()=>{
        (0, client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {}), {
            wrapper: (param)=>{
                let { children } = param;
                return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_appInfo_js_namespaceObject.CurrentAppInfoContext.Provider, {
                    value: {
                        data: {
                            database: {
                                dialect: 'postgres'
                            }
                        }
                    },
                    children: children
                });
            }
        });
        await (0, client_namespaceObject.waitFor)(()=>{
            expect(client_namespaceObject.screen.queryByText('JSONB')).toBeInTheDocument();
        });
    });
});
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
});
