mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1. Switch control and CodeMirror control UI improvements for read-only and disabled states.
2. If a form input value changes to null, pass it as an empty string in URL params. 3. Use server_type instead of type from the server info.
This commit is contained in:
committed by
Akshay Joshi
parent
48a5143485
commit
dc8ab7cd2a
@@ -19,7 +19,16 @@ describe('CodeMirror', ()=>{
|
||||
let cmInstance, options={
|
||||
lineNumbers: true,
|
||||
mode: 'text/x-pgsql',
|
||||
}, cmObj = jasmine.createSpyObj('cmObj', {'getValue':()=>'', 'setValue': ()=>{}, 'refresh': ()=>{}});
|
||||
},
|
||||
cmObj = jasmine.createSpyObj('cmObj', {
|
||||
'getValue':()=>'',
|
||||
'setValue': ()=>{},
|
||||
'refresh': ()=>{},
|
||||
'setOption': ()=>{},
|
||||
'removeKeyMap': ()=>{},
|
||||
'addKeyMap': ()=>{},
|
||||
'getWrapperElement': document.createElement('div'),
|
||||
});
|
||||
beforeEach(()=>{
|
||||
jasmineEnzyme();
|
||||
spyOn(OrigCodeMirror, 'fromTextArea').and.returnValue(cmObj);
|
||||
|
||||
Reference in New Issue
Block a user