mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
[835] Auto-save in new Item Submission form breaks the form
Notifications are enable only for manual submission savings.
This commit is contained in:
@@ -494,6 +494,15 @@ describe('SubmissionService test suite', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('dispatchManualSave', () => {
|
||||
it('should dispatch a new SaveSubmissionFormAction', () => {
|
||||
service.dispatchManualSave(submissionId,);
|
||||
const expected = new SaveSubmissionFormAction(submissionId, true);
|
||||
|
||||
expect((service as any).store.dispatch).toHaveBeenCalledWith(expected);
|
||||
});
|
||||
});
|
||||
|
||||
describe('dispatchSaveForLater', () => {
|
||||
it('should dispatch a new SaveForLaterSubmissionFormAction', () => {
|
||||
service.dispatchSaveForLater(submissionId,);
|
||||
|
Reference in New Issue
Block a user