mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Fixed an issue where the Save button is disabled due to the existing table check in ERD.
2) Fix warnings given by webpack.
This commit is contained in:
committed by
Akshay Joshi
parent
88c0968cab
commit
3f563d8cbf
@@ -252,7 +252,7 @@ describe('ERD BodyWidget', ()=>{
|
||||
bodyInstance.addEditNode();
|
||||
expect(tableDialog.show).toHaveBeenCalled();
|
||||
|
||||
let saveCallback = tableDialog.show.calls.mostRecent().args[6];
|
||||
let saveCallback = tableDialog.show.calls.mostRecent().args[7];
|
||||
let newData = {key: 'value'};
|
||||
saveCallback(newData);
|
||||
expect(bodyInstance.diagram.addNode).toHaveBeenCalledWith(newData);
|
||||
@@ -267,7 +267,7 @@ describe('ERD BodyWidget', ()=>{
|
||||
bodyInstance.addEditNode(node);
|
||||
expect(tableDialog.show).toHaveBeenCalled();
|
||||
|
||||
saveCallback = tableDialog.show.calls.mostRecent().args[6];
|
||||
saveCallback = tableDialog.show.calls.mostRecent().args[7];
|
||||
newData = {key: 'value'};
|
||||
saveCallback(newData);
|
||||
expect(node.setData).toHaveBeenCalledWith(newData);
|
||||
|
||||
Reference in New Issue
Block a user