mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smell 'Update this function so that its implementation is not identical' reported by SonarQube.
This commit is contained in:
@@ -243,6 +243,11 @@ describe('FunctionSchema', ()=>{
|
||||
|
||||
});
|
||||
|
||||
let initDataProc = ()=>Promise.resolve({
|
||||
sysfunc: true,
|
||||
type: 'procedure',
|
||||
});
|
||||
|
||||
it('proiswindow visible', ()=>{
|
||||
|
||||
|
||||
@@ -285,12 +290,7 @@ describe('FunctionSchema', ()=>{
|
||||
}
|
||||
);
|
||||
|
||||
let initData = ()=>Promise.resolve({
|
||||
sysfunc: true,
|
||||
type: 'procedure',
|
||||
});
|
||||
|
||||
mount(getEditView(editSchemaObj, initData));
|
||||
mount(getEditView(editSchemaObj, initDataProc));
|
||||
});
|
||||
|
||||
it('proiswindow visible', ()=>{
|
||||
@@ -389,13 +389,7 @@ describe('FunctionSchema', ()=>{
|
||||
}
|
||||
);
|
||||
|
||||
let initData = ()=>Promise.resolve({
|
||||
sysfunc: true,
|
||||
type: 'procedure',
|
||||
});
|
||||
|
||||
mount(getEditView(editSchemaObj, initData));
|
||||
|
||||
mount(getEditView(editSchemaObj, initDataProc));
|
||||
});
|
||||
|
||||
it('probin visible', ()=>{
|
||||
|
||||
Reference in New Issue
Block a user