mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the search object module unable to locate the object in the browser tree. Fixes #5396
This commit is contained in:
committed by
Akshay Joshi
parent
f282b26883
commit
7361470b64
@@ -421,7 +421,7 @@ describe('SearchObjectsDialogWrapper', () => {
|
||||
});
|
||||
|
||||
it('finaliseData', ()=>{
|
||||
spyOn(soDialogWrapper, 'translateSearchObjectsPath').and.returnValue(['disp/path', 'id/path']);
|
||||
spyOn(soDialogWrapper, 'translateSearchObjectsPath').and.returnValue(['disp/path', ['obj1/123', 'obj2/432']]);
|
||||
let data = soDialogWrapper.finaliseData({
|
||||
name: 'objname',
|
||||
type: 'sometype',
|
||||
@@ -430,13 +430,13 @@ describe('SearchObjectsDialogWrapper', () => {
|
||||
show_node: true,
|
||||
});
|
||||
expect(data).toEqual({
|
||||
id: 'id/path',
|
||||
id: 'obj1/123.obj2/432',
|
||||
icon: 'icon-sometype',
|
||||
name: 'objname',
|
||||
type: 'sometype',
|
||||
type_label: 'Some types coll',
|
||||
path: 'disp/path',
|
||||
id_path: 'id/path',
|
||||
id_path: ['obj1/123', 'obj2/432'],
|
||||
show_node: true,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user