Added tests

This commit is contained in:
Giuseppe Digilio
2019-01-08 23:25:44 +01:00
parent 959c02af74
commit 967d682962
17 changed files with 1094 additions and 393 deletions

View File

@@ -69,7 +69,7 @@ export class SectionsDirective implements OnDestroy, OnInit {
this.changeDetectorRef.detectChanges();
// If section is no longer active dispatch save action
if (!this.active && isNotNull(activeSectionId)) {
this.submissionService.dispatchSaveSection(this.submissionId, this.sectionId);
this.submissionService.dispatchSave(this.submissionId);
}
}
})
@@ -89,7 +89,7 @@ export class SectionsDirective implements OnDestroy, OnInit {
}
public isOpen() {
return (this.sectionState) ? true : false;
return this.sectionState;
}
public isMandatory() {