(schemaObj, getInitData)
| 30 | const SchemaViewWithBrowser = withBrowser(SchemaView); |
| 31 | |
| 32 | export const getEditView = async (schemaObj, getInitData)=> { |
| 33 | await act(async ()=>{ |
| 34 | return render(<SchemaViewWithBrowser |
| 35 | formType='dialog' |
| 36 | schema={schemaObj} |
| 37 | getInitData={getInitData} |
| 38 | viewHelperProps={{ |
| 39 | mode: 'edit', |
| 40 | }} |
| 41 | onSave={()=>{/*This is intentional (SonarQube)*/}} |
| 42 | onClose={()=>{/*This is intentional (SonarQube)*/}} |
| 43 | onHelp={()=>{/*This is intentional (SonarQube)*/}} |
| 44 | onEdit={()=>{/*This is intentional (SonarQube)*/}} |
| 45 | onDataChange={()=>{/*This is intentional (SonarQube)*/}} |
| 46 | confirmOnCloseReset={false} |
| 47 | hasSQL={false} |
| 48 | disableSqlHelp={false} |
| 49 | disableDialogHelp={false} |
| 50 | />); |
| 51 | }); |
| 52 | }; |
| 53 | |
| 54 | export const getCreateView = async (schemaObj)=> { |
| 55 | let ctrl; |
no outgoing calls
no test coverage detected