fixed relationship specific labels in modal and cleaned up existing code

This commit is contained in:
lotte
2020-01-02 13:46:31 +01:00
parent 3dfba2ad12
commit 3e9eb9eedc
10 changed files with 31 additions and 36 deletions

View File

@@ -435,13 +435,12 @@ describe('FormBuilderService test suite', () => {
expect((formModel[2] as DynamicRowGroupModel).get(0) instanceof DynamicTypeaheadModel).toBe(true);
});
fit('should return form\'s fields value from form model', () => {
it('should return form\'s fields value from form model', () => {
const formModel = service.modelFromConfiguration(submissionId, testFormConfiguration, 'testScopeUUID');
let value = {} as any;
let value = {} as any;
console.log(service.getValueFromModel(formModel));
expect(service.getValueFromModel(formModel)).toEqual(value);
console.log('first test');
((formModel[0] as DynamicRowGroupModel).get(1) as DsDynamicInputModel).valueUpdates.next('test');
value = {