Added form validation before saving bitstream data

This commit is contained in:
Giuseppe Digilio
2019-03-17 16:57:24 +01:00
parent e90212703e
commit 1bdc1d799d
3 changed files with 41 additions and 8 deletions

View File

@@ -236,6 +236,7 @@ describe('FormSectionComponent test suite', () => {
it('should init section properly', () => {
const sectionData = {};
formService.isValid.and.returnValue(observableOf(true));
formConfigService.getConfigByHref.and.returnValue(observableOf(formConfigData));
sectionsServiceStub.getSectionData.and.returnValue(observableOf(sectionData));
spyOn(comp, 'initForm');