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

No files matched your search

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