Added tests

This commit is contained in:
Giuseppe Digilio
2018-05-10 17:24:09 +02:00
parent a114650564
commit 876dba2892
8 changed files with 457 additions and 39 deletions

View File

@@ -31,7 +31,7 @@ export class FormService {
/**
* Method to retrieve form's data from state
*/
public getFormData(formId: string): Observable<FormControl> {
public getFormData(formId: string): Observable<any> {
return this.store.select(formObjectFromIdSelector(formId))
.filter((state) => isNotUndefined(state))
.map((state) => state.data)