Fixed issue of error message not getting displayed when filename is empty for backup, restore, and import/export. Fixes #3814.

This commit is contained in:
Satish V
2020-07-06 19:04:26 +05:30
committed by Akshay Joshi
parent 45a03dd663
commit 2ebf203412
7 changed files with 91 additions and 10 deletions

View File

@@ -94,6 +94,8 @@ describe('BackupDialogWrapper', () => {
return backupJQueryContainerSpy;
} else if (selector === backupNode.elements.body.childNodes[0]) {
return backupNodeChildNodeSpy;
} else {
return jasmine.createSpyObj('obj', ['appendTo']);
}
});
alertifySpy = jasmine.createSpyObj('alertify', ['alert', 'dialog']);

View File

@@ -87,6 +87,8 @@ describe('RestoreDialogWrapper', () => {
return restoreJQueryContainerSpy;
} else if (selector === restoreNode.elements.body.childNodes[0]) {
return restoreNodeChildNodeSpy;
} else {
return jasmine.createSpyObj('obj', ['appendTo']);
}
});
});