[CST-5418] Use different param for notifications and errors in the parseSaveResponse method

This commit is contained in:
Giuseppe Digilio
2022-04-21 11:30:15 +02:00
parent c250408382
commit 0506c5596a
3 changed files with 26 additions and 13 deletions

View File

@@ -237,6 +237,7 @@ describe('SubmissionObjectEffects test suite', () => {
b: new SaveSubmissionFormSuccessAction(
submissionId,
mockSubmissionRestResponse as any,
true,
true
)
});
@@ -260,6 +261,7 @@ describe('SubmissionObjectEffects test suite', () => {
b: new SaveSubmissionFormSuccessAction(
submissionId,
mockSubmissionRestResponse as any,
false,
false
)
});
@@ -911,7 +913,7 @@ describe('SubmissionObjectEffects test suite', () => {
submissionJsonPatchOperationsServiceStub.jsonPatchByResourceType.and.returnValue(observableOf(response));
const expected = cold('--b-', {
b: new SaveSubmissionFormSuccessAction(submissionId, response as any[], false)
b: new SaveSubmissionFormSuccessAction(submissionId, response as any[], false, true)
});
expect(submissionObjectEffects.saveAndDeposit$).toBeObservable(expected);