[835] Auto-save in new Item Submission form breaks the form

Minor changes and cleanup.
This commit is contained in:
Alessandro Martelli
2020-11-20 18:17:17 +01:00
parent 999993734f
commit 55bcdf0a25
9 changed files with 14 additions and 49 deletions

View File

@@ -164,12 +164,12 @@ describe('SubmissionFormFooterComponent Component', () => {
});
});
it('should call dispatchManualSave on save', () => {
it('should call dispatchSave on save', () => {
comp.save(null);
fixture.detectChanges();
expect(submissionServiceStub.dispatchManualSave).toHaveBeenCalledWith(submissionId);
expect(submissionServiceStub.dispatchSave).toHaveBeenCalledWith(submissionId, true);
});
it('should call dispatchSaveForLater on save for later', () => {