@@ -27,48 +27,17 @@ void main() {
2727 final FinancialAssessmentQuestions ? faQuestions =
2828 financialAssessmentQuestions.financialAssessmentQuestions;
2929
30- // expect(
31- // faQuestions?.questions?['account_turnover'],
32- // const QuestionsProperty(
33- // answers: [
34- // AnswersItem(
35- // hideIf: [],
36- // key: 'less_than_25000',
37- // value: 'Less than \$25,000',
38- // ),
39- // ],
40- // hideIf: [],
41- // question: 'Anticipated annual turnover',
42- // type: TypeEnum.singleChoice,
43- // ),
44- // );
45- // expect(
46- // faQuestions?.questions?['education_level'],
47- // const QuestionsProperty(
48- // answers: [
49- // AnswersItem(
50- // hideIf: [],
51- // key: 'primary',
52- // value: 'Primary',
53- // nextNode: 'net_income'),
54- // ],
55- // hideIf: [],
56- // question: 'Education level',
57- // type: TypeEnum.singleChoice,
58- // ),
59- // );
60-
6130 expect (
6231 faQuestions? .questions? ['account_turnover' ],
6332 const QuestionsProperty (
64- answers: [
33+ answers: < AnswersItem > [
6534 AnswersItem (
66- hideIf: [],
35+ hideIf: < String > [],
6736 key: 'less_than_25000' ,
6837 value: 'Less than \$ 25,000' ,
6938 ),
7039 ],
71- hideIf: [],
40+ hideIf: < String > [],
7241 question: 'Anticipated annual turnover' ,
7342 type: TypeEnum .singleChoice,
7443 ),
@@ -77,15 +46,15 @@ void main() {
7746 expect (
7847 faQuestions? .questions? ['education_level' ],
7948 const QuestionsProperty (
80- answers: [
49+ answers: < AnswersItem > [
8150 AnswersItem (
82- hideIf: [],
51+ hideIf: < String > [],
8352 key: 'primary' ,
8453 value: 'Primary' ,
8554 nextNode: 'net_income' ,
8655 ),
8756 ],
88- hideIf: [],
57+ hideIf: < String > [],
8958 question: 'Education level' ,
9059 type: TypeEnum .singleChoice,
9160 ),
@@ -94,15 +63,15 @@ void main() {
9463 expect (
9564 faQuestions? .questions? ['employment_industry' ],
9665 const QuestionsProperty (
97- answers: [
66+ answers: < AnswersItem > [
9867 AnswersItem (
99- hideIf: [],
68+ hideIf: < String > [],
10069 key: 'construction' ,
10170 value: 'Construction' ,
10271 nextNode: 'occupation' ,
10372 ),
10473 ],
105- hideIf: [],
74+ hideIf: < String > [],
10675 question: 'Industry of employment' ,
10776 type: TypeEnum .singleChoice,
10877 ),
@@ -111,15 +80,15 @@ void main() {
11180 expect (
11281 faQuestions? .questions? ['employment_status' ],
11382 const QuestionsProperty (
114- answers: [
83+ answers: < AnswersItem > [
11584 AnswersItem (
116- hideIf: [],
85+ hideIf: < String > [],
11786 key: 'employed' ,
11887 value: 'Employed' ,
11988 nextNode: 'employment_industry' ,
12089 ),
12190 ],
122- hideIf: [],
91+ hideIf: < String > [],
12392 question: 'Employment status' ,
12493 type: TypeEnum .singleChoice,
12594 ),
@@ -128,15 +97,15 @@ void main() {
12897 expect (
12998 faQuestions? .questions? ['estimated_worth' ],
13099 const QuestionsProperty (
131- answers: [
100+ answers: < AnswersItem > [
132101 AnswersItem (
133- hideIf: [],
102+ hideIf: < String > [],
134103 key: 'less_than_100000' ,
135104 value: 'Less than \$ 100,000' ,
136105 nextNode: 'account_turnover' ,
137106 ),
138107 ],
139- hideIf: [],
108+ hideIf: < String > [],
140109 question: 'Estimated net worth' ,
141110 type: TypeEnum .singleChoice,
142111 ),
@@ -145,15 +114,15 @@ void main() {
145114 expect (
146115 faQuestions? .questions? ['income_source' ],
147116 const QuestionsProperty (
148- answers: [
117+ answers: < AnswersItem > [
149118 AnswersItem (
150- hideIf: [],
119+ hideIf: < String > [],
151120 key: 'salaried_employee' ,
152121 value: 'Salaried Employee' ,
153122 nextNode: 'source_of_wealth' ,
154123 ),
155124 ],
156- hideIf: [],
125+ hideIf: < String > [],
157126 question: 'Source of income' ,
158127 type: TypeEnum .singleChoice,
159128 ),
@@ -162,15 +131,15 @@ void main() {
162131 expect (
163132 faQuestions? .questions? ['net_income' ],
164133 const QuestionsProperty (
165- answers: [
134+ answers: < AnswersItem > [
166135 AnswersItem (
167- hideIf: [],
136+ hideIf: < String > [],
168137 key: 'less_than_25000' ,
169138 value: 'Less than \$ 25,000' ,
170139 nextNode: 'estimated_worth' ,
171140 ),
172141 ],
173- hideIf: [],
142+ hideIf: < String > [],
174143 question: 'Net annual income' ,
175144 type: TypeEnum .singleChoice,
176145 ),
@@ -179,15 +148,15 @@ void main() {
179148 expect (
180149 faQuestions? .questions? ['occupation' ],
181150 const QuestionsProperty (
182- answers: [
151+ answers: < AnswersItem > [
183152 AnswersItem (
184- hideIf: [],
153+ hideIf: < String > [],
185154 key: 'chief_executives' ,
186155 value: 'Chief Executives, Senior Officials and Legislators' ,
187156 nextNode: 'income_source' ,
188157 ),
189158 ],
190- hideIf: [],
159+ hideIf: < String > [],
191160 question: 'Occupation' ,
192161 type: TypeEnum .singleChoice,
193162 ),
@@ -196,15 +165,15 @@ void main() {
196165 expect (
197166 faQuestions? .questions? ['source_of_wealth' ],
198167 const QuestionsProperty (
199- answers: [
168+ answers: < AnswersItem > [
200169 AnswersItem (
201- hideIf: [],
170+ hideIf: < String > [],
202171 key: 'income_savings' ,
203172 value: 'Accumulation of Income/Savings' ,
204173 nextNode: 'education_level' ,
205174 ),
206175 ],
207- hideIf: [],
176+ hideIf: < String > [],
208177 question: 'Source of Wealth' ,
209178 type: TypeEnum .singleChoice,
210179 ),
0 commit comments