mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that columns should be merged if the newly added column is present in the parent table. Fixes #6780
This commit is contained in:
committed by
Akshay Joshi
parent
d2a7f7fffe
commit
c7cd57db91
@@ -277,10 +277,10 @@ describe('TableSchema', ()=>{
|
||||
},
|
||||
});
|
||||
deferredPromise.then((depChange)=>{
|
||||
let finalCols = [newCol, newCol];
|
||||
let finalCols = [newCol];
|
||||
expect(depChange(state)).toEqual({
|
||||
adding_inherit_cols: false,
|
||||
columns: [newCol, newCol],
|
||||
columns: [newCol],
|
||||
});
|
||||
expect(schemaObj.changeColumnOptions).toHaveBeenCalledWith(finalCols);
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user