mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
[835] Auto-save in new Item Submission form breaks the form
Minor changes and cleanup.
This commit is contained in:
@@ -487,16 +487,14 @@ describe('SubmissionService test suite', () => {
|
||||
|
||||
describe('dispatchSave', () => {
|
||||
it('should dispatch a new SaveSubmissionFormAction', () => {
|
||||
service.dispatchSave(submissionId,);
|
||||
service.dispatchSave(submissionId);
|
||||
const expected = new SaveSubmissionFormAction(submissionId);
|
||||
|
||||
expect((service as any).store.dispatch).toHaveBeenCalledWith(expected);
|
||||
});
|
||||
});
|
||||
|
||||
describe('dispatchManualSave', () => {
|
||||
it('should dispatch a new SaveSubmissionFormAction', () => {
|
||||
service.dispatchManualSave(submissionId,);
|
||||
it('should dispatch a new SaveSubmissionFormAction with manual flag', () => {
|
||||
service.dispatchSave(submissionId, true);
|
||||
const expected = new SaveSubmissionFormAction(submissionId, true);
|
||||
|
||||
expect((service as any).store.dispatch).toHaveBeenCalledWith(expected);
|
||||
|
Reference in New Issue
Block a user