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:
Aditya Toshniwal
2021-01-25 19:44:24 +05:30
committed by Akshay Joshi
parent 88c0968cab
commit 3f563d8cbf
5 changed files with 16 additions and 14 deletions

View File

@@ -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);