@@ -118,56 +118,50 @@ const dummyTemplateStepsFactory = () => {
118118 } ) ,
119119 } ) ;
120120
121- const dmcQuestionEmptyUrlConfig = {
122- url : '' ,
123- jsonPath : '' ,
124- } as DynamicMultipleChoiceConfig ;
125121 const dmcQuestionEmptyUrl = dummyQuestionTemplateRelationFactory ( {
126122 question : dummyQuestionFactory ( {
127123 id : 'dmcQuestionEmptyUrl' ,
128124 naturalKey : 'dmcQuestionEmptyUrl' ,
129125 dataType : DataType . DYNAMIC_MULTIPLE_CHOICE ,
130- config : dmcQuestionEmptyUrlConfig ,
126+ config : {
127+ url : '' ,
128+ jsonPath : '' ,
129+ } as DynamicMultipleChoiceConfig ,
131130 } ) ,
132- config : dmcQuestionEmptyUrlConfig ,
133131 } ) ;
134132
135- const dmcQuestionEmptyJsonPathConfig = {
136- url : 'api-url' ,
137- jsonPath : '' ,
138- apiCallRequestHeaders : [
139- {
140- name : 'header1' ,
141- value : 'value1' ,
142- } ,
143- {
144- name : 'header2' ,
145- value : 'value2' ,
146- } ,
147- ] ,
148- } as DynamicMultipleChoiceConfig ;
149133 const dmcQuestionEmptyJsonPath = dummyQuestionTemplateRelationFactory ( {
150134 question : dummyQuestionFactory ( {
151135 id : 'dmcQuestionEmptyJsonPath' ,
152136 naturalKey : 'dmcQuestionEmptyJsonPath' ,
153137 dataType : DataType . DYNAMIC_MULTIPLE_CHOICE ,
154- config : dmcQuestionEmptyJsonPathConfig ,
138+ config : {
139+ url : 'api-url' ,
140+ jsonPath : '' ,
141+ apiCallRequestHeaders : [
142+ {
143+ name : 'header1' ,
144+ value : 'value1' ,
145+ } ,
146+ {
147+ name : 'header2' ,
148+ value : 'value2' ,
149+ } ,
150+ ] ,
151+ } as DynamicMultipleChoiceConfig ,
155152 } ) ,
156- config : dmcQuestionEmptyJsonPathConfig ,
157153 } ) ;
158154
159- const dmcQuestionWithUrlAndJsonPathConfig = {
160- url : 'api-url' ,
161- jsonPath : '$..option' ,
162- } as DynamicMultipleChoiceConfig ;
163155 const dmcQuestionWithUrlAndJsonPath = dummyQuestionTemplateRelationFactory ( {
164156 question : dummyQuestionFactory ( {
165157 id : 'dmcQuestionWithUrlAndJsonPath' ,
166158 naturalKey : 'dmcQuestionWithUrlAndJsonPath' ,
167159 dataType : DataType . DYNAMIC_MULTIPLE_CHOICE ,
168- config : dmcQuestionWithUrlAndJsonPathConfig ,
160+ config : {
161+ url : 'api-url' ,
162+ jsonPath : '$..option' ,
163+ } as DynamicMultipleChoiceConfig ,
169164 } ) ,
170- config : dmcQuestionWithUrlAndJsonPathConfig ,
171165 } ) ;
172166
173167 return [
0 commit comments