Best JavaScript code snippet using storybook-root
ObjectPageSubSection.testdata.js
Source:ObjectPageSubSection.testdata.js
1var testData = (function () {2 "use strict";3 var aStandardModeConfig = [{4 "configString": "a-1",5 "expectedBlockConfig": [[12, 6, 8, 9, false, false, false, false], [12, 6, 4, 3, false, false, false, false]]6 }, {7 "configString": "a-2",8 "expectedBlockConfig": [[12, 12, 4, 6, false, false, false, false], [12, 12, 8, 6, false, true, false, false]]9 }, {10 "configString": "a-3",11 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false]]12 }, {13 "configString": "1-a",14 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 8, 9, false, false, false, false]]15 }, {16 "configString": "2-a",17 "expectedBlockConfig": [[12, 12, 8, 6, false, false, false, false], [12, 12, 4, 6, false, true, false, false]]18 }, {19 "configString": "3-a",20 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 12, 12, 3, false, true, true, false]]21 }, {22 "configString": "a-a-1",23 "expectedBlockConfig": [[12, 6, 4, 6, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false]]24 }, {25 "configString": "a-a-2",26 "expectedBlockConfig": [[12, 6, 8, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, true, false]]27 }, {28 "configString": "1-a-1",29 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 6, false, false, false, false], [12, 6, 4, 3, false, true, false, false]]30 }, {31 "configString": "1-a-2",32 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 8, 3, false, false, false, false], [12, 12, 8, 6, false, true, true, false]]33 }, {34 "configString": "2-a-a",35 "expectedBlockConfig": [[12, 12, 8, 6, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 12, 3, false, false, true, false]]36 }, {37 "configString": "2-a-1",38 "expectedBlockConfig": [[12, 12, 8, 6, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false]]39 }, {40 "configString": "2-1-a",41 "expectedBlockConfig": [[12, 12, 8, 6, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 12, 3, false, false, true, false]]42 }, {43 "configString": "a-a-a-1",44 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false]]45 }, {46 "configString": "a-a-a-2",47 "expectedBlockConfig": [[12, 6, 4, 6, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 12, 4, 3, false, true, false, false], [12, 12, 8, 6, false, true, true, true]]48 }, {49 "configString": "a-1-a-1",50 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false]]51 }, {52 "configString": "1-a-1-a",53 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 12, 3, false, false, true, false]]54 }, {55 "configString": "1-a-a-1",56 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false]]57 }, {58 "configString": "a-2-a-1",59 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 6, 8, 3, false, true, true, false], [12, 6, 4, 3, false, false, false, true]]60 }, {61 "configString": "a-2-a-2",62 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 12, 4, 3, false, true, true, false], [12, 12, 8, 6, false, true, false, true]]63 }, {64 "configString": "2-a-a-2",65 "expectedBlockConfig": [[12, 12, 8, 6, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 12, 8, 6, false, true, false, true]]66 }, {67 "configString": "3-a-3-a",68 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 9, false, true, true, true], [12, 12, 12, 3, false, true, true, false]]69 }, {70 "configString": "1-a-a-a-1",71 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 8, 3, false, false, true, false], [12, 6, 4, 3, false, true, false, true]]72 }, {73 "configString": "2-a-a-a-2",74 "expectedBlockConfig": [[12, 12, 8, 6, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 8, 3, false, false, true, false], [12, 12, 4, 6, false, true, false, true], [12, 12, 8, 6, false, true, true, false]]75 }, {76 "configString": "3-a-a-a-1",77 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 6, 4, 3, false, true, true, false], [12, 6, 4, 6, false, false, false, true], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false]]78 }, {79 "configString": "3-a-a-a-2",80 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 6, 4, 3, false, true, true, false], [12, 6, 4, 3, false, false, false, true], [12, 12, 4, 3, false, true, false, false], [12, 12, 8, 6, false, true, true, false]]81 }, {82 "configString": "a-a-1-1-a",83 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 12, 8, 12, false, true, false, true]]84 }, {85 "configString": "a-a-1-a-1",86 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 8, 3, false, false, true, false], [12, 6, 4, 3, false, true, false, true]]87 }, {88 "configString": "a-3-a-a-2",89 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 6, 8, 3, false, true, true, true], [12, 6, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, true, false]]90 }, {91 "configString": "a-2-a-a-1",92 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 6, 4, 3, false, true, true, false], [12, 6, 4, 9, false, false, false, true], [12, 6, 4, 3, false, true, false, false]]93 }, {94 "configString": "a-2-a-a-2",95 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 6, 8, 3, false, true, true, false], [12, 6, 4, 6, false, false, false, true], [12, 12, 8, 6, false, true, true, false]]96 }, {97 "configString": "a-1-a-1-a",98 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 12, 8, 12, false, true, false, true]]99 }, {100 "configString": "a-1-a-2-a",101 "expectedBlockConfig": [[12, 6, 4, 6, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 12, 4, 3, false, true, false, false], [12, 12, 8, 6, false, true, true, true], [12, 12, 4, 6, false, true, false, false]]102 }, {103 "configString": "a-2-a-1-a",104 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 6, 4, 3, false, true, true, false], [12, 6, 4, 3, false, false, false, true], [12, 12, 4, 9, false, true, false, false]]105 }, {106 "configString": "a-3-a-1-a",107 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 6, 4, 6, false, true, true, true], [12, 6, 4, 3, false, false, false, false], [12, 12, 4, 3, false, true, false, false]]108 }, {109 "configString": "1-a-1-a-1",110 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 8, 3, false, false, true, false], [12, 6, 4, 3, false, true, false, true]]111 }, {112 "configString": "1-a-a-1-a",113 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 12, 8, 12, false, true, false, true]]114 }, {115 "configString": "1-a-2-a-1",116 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 8, 3, false, false, false, false], [12, 12, 8, 6, false, true, true, false], [12, 6, 4, 9, false, true, false, true], [12, 6, 4, 3, false, false, true, false]]117 }, {118 "configString": "1-a-3-a-2",119 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 8, 9, false, false, false, false], [12, 12, 12, 9, false, true, true, true], [12, 12, 4, 3, false, true, true, false], [12, 12, 8, 6, false, true, false, true]]120 }, {121 "configString": "2-a-a-2-a",122 "expectedBlockConfig": [[12, 12, 8, 6, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 12, 8, 6, false, true, false, true], [12, 12, 12, 6, false, true, true, false]]123 }, {124 "configString": "3-a-a-3-a",125 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 6, 8, 3, false, true, true, false], [12, 6, 4, 3, false, false, false, true], [12, 12, 12, 9, false, true, true, false], [12, 12, 12, 12, false, true, true, true]]126 }, {127 "configString": "1-a-a-a-a-1",128 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 6, 4, 9, false, true, false, true], [12, 6, 4, 3, false, false, false, false]]129 }, {130 "configString": "1-a-a-a-a-3",131 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 8, 3, false, false, true, false], [12, 12, 4, 3, false, true, false, true], [12, 12, 12, 9, false, true, true, false]]132 }, {133 "configString": "a-a-a-1-a-a",134 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 6, 4, 9, false, true, false, true], [12, 6, 4, 3, false, false, false, false]]135 }, {136 "configString": "a-a-a-2-a-a",137 "expectedBlockConfig": [[12, 6, 4, 6, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 12, 4, 3, false, true, false, false], [12, 12, 8, 6, false, true, true, true], [12, 6, 4, 3, false, true, false, false], [12, 6, 12, 3, false, false, true, false]]138 }, {139 "configString": "a-a-1-a-a-a",140 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 6, 4, 9, false, true, false, true], [12, 6, 4, 3, false, false, false, false]]141 }, {142 "configString": "a-a-2-a-a-a",143 "expectedBlockConfig": [[12, 6, 8, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, true, false], [12, 6, 4, 6, false, true, false, true], [12, 6, 8, 3, false, false, true, false], [12, 12, 4, 3, false, true, false, false]]144 }, {145 "configString": "a-a-3-a-a-a",146 "expectedBlockConfig": [[12, 6, 8, 9, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, true], [12, 6, 4, 3, false, true, true, false], [12, 6, 4, 9, false, false, false, true], [12, 12, 4, 3, false, true, false, false]]147 }, {148 "configString": "a-1-a-a-1-a",149 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 6, 4, 3, false, true, false, true], [12, 6, 4, 9, false, false, false, false]]150 }, {151 "configString": "a-2-a-a-2-a",152 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 6, 8, 3, false, true, true, false], [12, 6, 4, 3, false, false, false, true], [12, 12, 8, 6, false, true, true, false], [12, 12, 4, 3, false, true, false, false]]153 }, {154 "configString": "a-3-a-a-3-a",155 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 6, 8, 9, false, true, true, true], [12, 6, 4, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, true], [12, 12, 12, 3, false, true, true, false]]156 }, {157 "configString": "a-1-a-a-a-1",158 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 6, 4, 9, false, true, false, true], [12, 6, 4, 3, false, false, false, false]]159 }, {160 "configString": "a-2-a-a-a-1",161 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 6, 4, 3, false, true, true, false], [12, 6, 4, 6, false, false, false, true], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false]]162 }, {163 "configString": "a-1-a-1-a-1",164 "expectedBlockConfig": [[12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, false, false, false], [12, 6, 4, 3, false, true, false, false], [12, 6, 4, 3, false, false, true, false], [12, 6, 4, 9, false, true, false, true], [12, 6, 4, 3, false, false, false, false]]165 }, {166 "configString": "a-2-a-2-a-2",167 "expectedBlockConfig": [[12, 12, 4, 3, false, false, false, false], [12, 12, 8, 6, false, true, false, false], [12, 12, 4, 3, false, true, true, false], [12, 12, 8, 6, false, true, false, true], [12, 12, 4, 6, false, true, true, false], [12, 12, 8, 6, false, true, false, true]]168 }, {169 "configString": "a-3-a-2-a-1",170 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 12, 4, 3, false, true, true, true], [12, 12, 8, 6, false, true, false, false], [12, 6, 8, 3, false, true, true, false], [12, 6, 4, 3, false, false, false, true]]171 }], aTwoColumnInLConfig = [{172 "configString": "a-1",173 "expectedBlockConfig": [[12, 6, 6, 9, false, false, false, false], [12, 6, 6, 3, false, false, false, false]]174 }, {175 "configString": "a-2",176 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 12, 12, 6, false, true, true, false]]177 }, {178 "configString": "a-3",179 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false]]180 }, {181 "configString": "1-a",182 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 9, false, false, false, false]]183 }, {184 "configString": "2-a",185 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 12, 12, 6, false, true, true, false]]186 }, {187 "configString": "3-a",188 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 12, 12, 3, false, true, true, false]]189 }, {190 "configString": "a-a-1",191 "expectedBlockConfig": [[12, 6, 6, 6, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false]]192 }, {193 "configString": "a-a-2",194 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false]]195 }, {196 "configString": "1-a-1",197 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 6, false, false, false, false], [12, 6, 6, 3, false, true, true, false]]198 }, {199 "configString": "1-a-2",200 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false]]201 }, {202 "configString": "2-a-a",203 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]204 }, {205 "configString": "2-a-1",206 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]207 }, {208 "configString": "2-1-a",209 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]210 }, {211 "configString": "a-a-a-1",212 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]213 }, {214 "configString": "a-a-a-2",215 "expectedBlockConfig": [[12, 6, 6, 6, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 6, false, true, true, true]]216 }, {217 "configString": "a-1-a-1",218 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]219 }, {220 "configString": "1-a-1-a",221 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]222 }, {223 "configString": "1-a-a-1",224 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]225 }, {226 "configString": "a-2-a-1",227 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, true]]228 }, {229 "configString": "a-2-a-2",230 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 6, false, true, true, true]]231 }, {232 "configString": "2-a-a-2",233 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, true]]234 }, {235 "configString": "3-a-3-a",236 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 9, false, true, true, true], [12, 12, 12, 3, false, true, true, false]]237 }, {238 "configString": "1-a-a-a-1",239 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, true]]240 }, {241 "configString": "2-a-a-a-2",242 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, true], [12, 12, 12, 6, false, true, true, false]]243 }, {244 "configString": "3-a-a-a-1",245 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 6, false, false, false, true], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]246 }, {247 "configString": "3-a-a-a-2",248 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, true], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 6, false, true, true, false]]249 }, {250 "configString": "a-a-1-1-a",251 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 12, false, true, true, true]]252 }, {253 "configString": "a-a-1-a-1",254 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, true]]255 }, {256 "configString": "a-3-a-a-2",257 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 6, 6, 3, false, true, true, true], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false]]258 }, {259 "configString": "a-2-a-a-1",260 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 9, false, false, false, true], [12, 6, 6, 3, false, true, true, false]]261 }, {262 "configString": "a-2-a-a-2",263 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 6, false, false, false, true], [12, 12, 12, 6, false, true, true, false]]264 }, {265 "configString": "a-1-a-1-a",266 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 12, false, true, true, true]]267 }, {268 "configString": "a-1-a-2-a",269 "expectedBlockConfig": [[12, 6, 6, 6, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 6, false, true, true, true], [12, 12, 12, 6, false, true, true, false]]270 }, {271 "configString": "a-2-a-1-a",272 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, true], [12, 12, 12, 9, false, true, true, false]]273 }, {274 "configString": "a-3-a-1-a",275 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 6, 6, 6, false, true, true, true], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 3, false, true, true, false]]276 }, {277 "configString": "1-a-1-a-1",278 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, true]]279 }, {280 "configString": "1-a-a-1-a",281 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 12, false, true, true, true]]282 }, {283 "configString": "1-a-2-a-1",284 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 9, false, true, true, true], [12, 6, 6, 3, false, false, false, false]]285 }, {286 "configString": "1-a-3-a-2",287 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 9, false, false, false, false], [12, 12, 12, 9, false, true, true, true], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 6, false, true, true, true]]288 }, {289 "configString": "2-a-a-2-a",290 "expectedBlockConfig": [[12, 12, 12, 6, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, true], [12, 12, 12, 6, false, true, true, false]]291 }, {292 "configString": "3-a-a-3-a",293 "expectedBlockConfig": [[12, 12, 12, 9, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, true], [12, 12, 12, 9, false, true, true, false], [12, 12, 12, 12, false, true, true, true]]294 }, {295 "configString": "1-a-a-a-a-1",296 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 9, false, true, true, true], [12, 6, 6, 3, false, false, false, false]]297 }, {298 "configString": "1-a-a-a-a-3",299 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 3, false, true, true, true], [12, 12, 12, 9, false, true, true, false]]300 }, {301 "configString": "a-a-a-1-a-a",302 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 9, false, true, true, true], [12, 6, 6, 3, false, false, false, false]]303 }, {304 "configString": "a-a-a-2-a-a",305 "expectedBlockConfig": [[12, 6, 6, 6, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 6, false, true, true, true], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]306 }, {307 "configString": "a-a-1-a-a-a",308 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 9, false, true, true, true], [12, 6, 6, 3, false, false, false, false]]309 }, {310 "configString": "a-a-2-a-a-a",311 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 6, false, true, true, true], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 3, false, true, true, false]]312 }, {313 "configString": "a-a-3-a-a-a",314 "expectedBlockConfig": [[12, 6, 6, 9, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, true], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 9, false, false, false, true], [12, 12, 12, 3, false, true, true, false]]315 }, {316 "configString": "a-1-a-a-1-a",317 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, true], [12, 6, 6, 9, false, false, false, false]]318 }, {319 "configString": "a-2-a-a-2-a",320 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, true], [12, 12, 12, 6, false, true, true, false], [12, 12, 12, 3, false, true, true, false]]321 }, {322 "configString": "a-3-a-a-3-a",323 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 6, 6, 9, false, true, true, true], [12, 6, 6, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, true], [12, 12, 12, 3, false, true, true, false]]324 }, {325 "configString": "a-1-a-a-a-1",326 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 9, false, true, true, true], [12, 6, 6, 3, false, false, false, false]]327 }, {328 "configString": "a-2-a-a-a-1",329 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 6, false, false, false, true], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false]]330 }, {331 "configString": "a-1-a-1-a-1",332 "expectedBlockConfig": [[12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, false], [12, 6, 6, 9, false, true, true, true], [12, 6, 6, 3, false, false, false, false]]333 }, {334 "configString": "a-2-a-2-a-2",335 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 6, false, true, true, false], [12, 12, 12, 3, false, true, true, false], [12, 12, 12, 6, false, true, true, true], [12, 12, 12, 6, false, true, true, false], [12, 12, 12, 6, false, true, true, true]]336 }, {337 "configString": "a-3-a-2-a-1",338 "expectedBlockConfig": [[12, 12, 12, 3, false, false, false, false], [12, 12, 12, 9, false, true, true, false], [12, 12, 12, 3, false, true, true, true], [12, 12, 12, 6, false, true, true, false], [12, 6, 6, 3, false, true, true, false], [12, 6, 6, 3, false, false, false, true]]339 }],340 aTitleOnTheLeftConfig = [{341 "configString": "a-1",342 "expectedBlockConfig": [[12, 6, 6, 8, false, false, false, false], [12, 6, 6, 4, false, false, false, false]]343 }, {344 "configString": "a-2",345 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false]]346 }, {347 "configString": "a-3",348 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true]]349 }, {350 "configString": "1-a",351 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 8, false, false, false, false]]352 }, {353 "configString": "2-a",354 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 12, 12, 4, false, true, true, false]]355 }, {356 "configString": "3-a",357 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true]]358 }, {359 "configString": "a-a-1",360 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false]]361 }, {362 "configString": "a-a-2",363 "expectedBlockConfig": [[12, 6, 6, 8, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, true]]364 }, {365 "configString": "1-a-1",366 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false]]367 }, {368 "configString": "1-a-2",369 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 8, false, false, false, false], [12, 12, 12, 8, false, true, true, true]]370 }, {371 "configString": "2-a-a",372 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 12, false, false, false, true]]373 }, {374 "configString": "2-a-1",375 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true]]376 }, {377 "configString": "2-1-a",378 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 12, false, false, false, true]]379 }, {380 "configString": "a-a-a-1",381 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true]]382 }, {383 "configString": "a-a-a-2",384 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true]]385 }, {386 "configString": "a-1-a-1",387 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true]]388 }, {389 "configString": "1-a-1-a",390 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 12, false, false, false, true]]391 }, {392 "configString": "1-a-a-1",393 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true]]394 }, {395 "configString": "a-2-a-1",396 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 6, 8, false, true, true, true], [12, 6, 6, 4, false, false, false, false]]397 }, {398 "configString": "a-2-a-2",399 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false]]400 }, {401 "configString": "2-a-a-2",402 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 12, 12, 8, false, true, true, false]]403 }, {404 "configString": "3-a-3-a",405 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true]]406 }, {407 "configString": "1-a-a-a-1",408 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 8, false, false, false, true], [12, 6, 6, 4, false, true, true, false]]409 }, {410 "configString": "2-a-a-a-2",411 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 8, false, false, false, true], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true]]412 }, {413 "configString": "3-a-a-a-1",414 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 6, 6, 4, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true]]415 }, {416 "configString": "3-a-a-a-2",417 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 6, 6, 4, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true]]418 }, {419 "configString": "a-a-1-1-a",420 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 12, 12, 8, false, true, true, false]]421 }, {422 "configString": "a-a-1-a-1",423 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 8, false, false, false, true], [12, 6, 6, 4, false, true, true, false]]424 }, {425 "configString": "a-3-a-a-2",426 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 6, 8, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, true]]427 }, {428 "configString": "a-2-a-a-1",429 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 6, 4, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false]]430 }, {431 "configString": "a-2-a-a-2",432 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 6, 8, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, true]]433 }, {434 "configString": "a-1-a-1-a",435 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 12, 12, 8, false, true, true, false]]436 }, {437 "configString": "a-1-a-2-a",438 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true], [12, 12, 12, 4, false, true, true, false]]439 }, {440 "configString": "a-2-a-1-a",441 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 6, 4, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 4, false, true, true, false]]442 }, {443 "configString": "a-3-a-1-a",444 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 6, 4, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 4, false, true, true, false]]445 }, {446 "configString": "1-a-1-a-1",447 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 8, false, false, false, true], [12, 6, 6, 4, false, true, true, false]]448 }, {449 "configString": "1-a-a-1-a",450 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 12, 12, 8, false, true, true, false]]451 }, {452 "configString": "1-a-2-a-1",453 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 8, false, false, false, false], [12, 12, 12, 8, false, true, true, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true]]454 }, {455 "configString": "1-a-3-a-2",456 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 8, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false]]457 }, {458 "configString": "2-a-a-2-a",459 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 12, false, true, true, true]]460 }, {461 "configString": "3-a-a-3-a",462 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 6, 6, 8, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true]]463 }, {464 "configString": "1-a-a-a-a-1",465 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, false]]466 }, {467 "configString": "1-a-a-a-a-3",468 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 8, false, false, false, true], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 12, false, true, true, true]]469 }, {470 "configString": "a-a-a-1-a-a",471 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, false]]472 }, {473 "configString": "a-a-a-2-a-a",474 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 12, false, false, false, true]]475 }, {476 "configString": "a-a-1-a-a-a",477 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, false]]478 }, {479 "configString": "a-a-2-a-a-a",480 "expectedBlockConfig": [[12, 6, 6, 8, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 8, false, false, false, true], [12, 12, 12, 4, false, true, true, false]]481 }, {482 "configString": "a-a-3-a-a-a",483 "expectedBlockConfig": [[12, 6, 6, 8, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 6, 4, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 4, false, true, true, false]]484 }, {485 "configString": "a-1-a-a-1-a",486 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, false]]487 }, {488 "configString": "a-2-a-a-2-a",489 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 6, 8, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, true], [12, 12, 12, 4, false, true, true, false]]490 }, {491 "configString": "a-3-a-a-3-a",492 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 6, 8, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true]]493 }, {494 "configString": "a-1-a-a-a-1",495 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, false]]496 }, {497 "configString": "a-2-a-a-a-1",498 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 6, 4, false, true, true, true], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true]]499 }, {500 "configString": "a-1-a-1-a-1",501 "expectedBlockConfig": [[12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, false, false, false], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, true], [12, 6, 6, 4, false, true, true, false], [12, 6, 6, 4, false, false, false, false]]502 }, {503 "configString": "a-2-a-2-a-2",504 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false]]505 }, {506 "configString": "a-3-a-2-a-1",507 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false], [12, 6, 6, 8, false, true, true, true], [12, 6, 6, 4, false, false, false, false]]508 }],509 aTitleOnTheLeftConfigAndTwoColumnInL = [{510 "configString": "a-1",511 "expectedBlockConfig": [[12, 6, 12, 8, false, false, false, false], [12, 6, 12, 4, false, false, true, false]]512 }, {513 "configString": "a-2",514 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false]]515 }, {516 "configString": "a-3",517 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true]]518 }, {519 "configString": "1-a",520 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 8, false, false, true, false]]521 }, {522 "configString": "2-a",523 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 12, 12, 4, false, true, true, false]]524 }, {525 "configString": "3-a",526 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true]]527 }, {528 "configString": "a-a-1",529 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false]]530 }, {531 "configString": "a-a-2",532 "expectedBlockConfig": [[12, 6, 12, 8, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 8, false, true, true, true]]533 }, {534 "configString": "1-a-1",535 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false]]536 }, {537 "configString": "1-a-2",538 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 8, false, false, true, false], [12, 12, 12, 8, false, true, true, true]]539 }, {540 "configString": "2-a-a",541 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 12, false, false, true, true]]542 }, {543 "configString": "2-a-1",544 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true]]545 }, {546 "configString": "2-1-a",547 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 12, false, false, true, true]]548 }, {549 "configString": "a-a-a-1",550 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true]]551 }, {552 "configString": "a-a-a-2",553 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true]]554 }, {555 "configString": "a-1-a-1",556 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true]]557 }, {558 "configString": "1-a-1-a",559 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 12, false, false, true, true]]560 }, {561 "configString": "1-a-a-1",562 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true]]563 }, {564 "configString": "a-2-a-1",565 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 12, 8, false, true, true, true], [12, 6, 12, 4, false, false, true, false]]566 }, {567 "configString": "a-2-a-2",568 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false]]569 }, {570 "configString": "2-a-a-2",571 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 12, 12, 8, false, true, true, false]]572 }, {573 "configString": "3-a-3-a",574 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true]]575 }, {576 "configString": "1-a-a-a-1",577 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 8, false, false, true, true], [12, 6, 12, 4, false, true, true, false]]578 }, {579 "configString": "2-a-a-a-2",580 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 8, false, false, true, true], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true]]581 }, {582 "configString": "3-a-a-a-1",583 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 6, 12, 4, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true]]584 }, {585 "configString": "3-a-a-a-2",586 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 6, 12, 4, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true]]587 }, {588 "configString": "a-a-1-1-a",589 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 12, 12, 8, false, true, true, false]]590 }, {591 "configString": "a-a-1-a-1",592 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 8, false, false, true, true], [12, 6, 12, 4, false, true, true, false]]593 }, {594 "configString": "a-3-a-a-2",595 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 12, 8, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 8, false, true, true, true]]596 }, {597 "configString": "a-2-a-a-1",598 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 12, 4, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false]]599 }, {600 "configString": "a-2-a-a-2",601 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 12, 8, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 8, false, true, true, true]]602 }, {603 "configString": "a-1-a-1-a",604 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 12, 12, 8, false, true, true, false]]605 }, {606 "configString": "a-1-a-2-a",607 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true], [12, 12, 12, 4, false, true, true, false]]608 }, {609 "configString": "a-2-a-1-a",610 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 12, 4, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 4, false, true, true, false]]611 }, {612 "configString": "a-3-a-1-a",613 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 12, 4, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 4, false, true, true, false]]614 }, {615 "configString": "1-a-1-a-1",616 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 8, false, false, true, true], [12, 6, 12, 4, false, true, true, false]]617 }, {618 "configString": "1-a-a-1-a",619 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 12, 12, 8, false, true, true, false]]620 }, {621 "configString": "1-a-2-a-1",622 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 8, false, false, true, false], [12, 12, 12, 8, false, true, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true]]623 }, {624 "configString": "1-a-3-a-2",625 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 8, false, false, true, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false]]626 }, {627 "configString": "2-a-a-2-a",628 "expectedBlockConfig": [[12, 12, 12, 8, false, false, false, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 12, false, true, true, true]]629 }, {630 "configString": "3-a-a-3-a",631 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 6, 12, 8, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true]]632 }, {633 "configString": "1-a-a-a-a-1",634 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, false]]635 }, {636 "configString": "1-a-a-a-a-3",637 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 8, false, false, true, true], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 12, false, true, true, true]]638 }, {639 "configString": "a-a-a-1-a-a",640 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, false]]641 }, {642 "configString": "a-a-a-2-a-a",643 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 4, false, true, true, false], [12, 12, 12, 8, false, true, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 12, false, false, true, true]]644 }, {645 "configString": "a-a-1-a-a-a",646 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, false]]647 }, {648 "configString": "a-a-2-a-a-a",649 "expectedBlockConfig": [[12, 6, 12, 8, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 8, false, true, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 8, false, false, true, true], [12, 12, 12, 4, false, true, true, false]]650 }, {651 "configString": "a-a-3-a-a-a",652 "expectedBlockConfig": [[12, 6, 12, 8, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 12, 4, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 4, false, true, true, false]]653 }, {654 "configString": "a-1-a-a-1-a",655 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, false]]656 }, {657 "configString": "a-2-a-a-2-a",658 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 12, 8, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 8, false, true, true, true], [12, 12, 12, 4, false, true, true, false]]659 }, {660 "configString": "a-3-a-a-3-a",661 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 6, 12, 8, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 12, false, true, true, true]]662 }, {663 "configString": "a-1-a-a-a-1",664 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, false]]665 }, {666 "configString": "a-2-a-a-a-1",667 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 6, 12, 4, false, true, true, true], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true]]668 }, {669 "configString": "a-1-a-1-a-1",670 "expectedBlockConfig": [[12, 6, 12, 4, false, false, false, false], [12, 6, 12, 4, false, false, true, false], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, true], [12, 6, 12, 4, false, true, true, false], [12, 6, 12, 4, false, false, true, false]]671 }, {672 "configString": "a-2-a-2-a-2",673 "expectedBlockConfig": [[12, 12, 12, 4, false, false, false, false], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false]]674 }, {675 "configString": "a-3-a-2-a-1",676 "expectedBlockConfig": [[12, 12, 12, 12, false, false, false, false], [12, 12, 12, 12, false, true, true, true], [12, 12, 12, 4, false, true, true, true], [12, 12, 12, 8, false, true, true, false], [12, 6, 12, 8, false, true, true, true], [12, 6, 12, 4, false, false, true, false]]677 }];678 return {679 aStandardModeConfig: aStandardModeConfig,680 aTwoColumnInLConfig: aTwoColumnInLConfig,681 aTitleOnTheLeftConfig: aTitleOnTheLeftConfig,682 aTitleOnTheLeftConfigAndTwoColumnInL: aTitleOnTheLeftConfigAndTwoColumnInL683 }...
utils.js
Source:utils.js
1import { NativeModules } from 'react-native';2import DefaultPreference from 'react-native-default-preference';3var globalInfo = {};4export function CustomLog(message, args = "") {5 console.log(message, args);6}7export function CustomError(message, args = "") {8 console.error(message, args);9}10export function SetGlobalInfo(updatedInfo) {11 globalInfo = updatedInfo;12}13export function GetGlobalInfo() {14 return globalInfo;15}16export function GetNodeFromStartUpData(startUpData) {17 if(startUpData.ipAddress === undefined || startUpData.port === undefined){18 return null;19 }20 21 return startUpData.ipAddress+":"+startUpData.port;22}23export function BTCToFiat(btcAmount, fiatValues) {24 const locale = NativeModules.I18nManager.localeIdentifier;25 console.log("locale is " + locale);26 var currency = "usd";27 if (locale.indexOf("_US") != -1) {28 currency = "usd";29 }30 else if (locale.indexOf("_JP") != -1) {31 currency = "jpy";32 }33 else if (locale.indexOf("_EU") != -1) {34 currency = "eur";35 }36 else if (locale.indexOf("_GB") != -1) {37 currency = "gbp";38 }39 return (btcAmount * fiatValues[currency]).toFixed(2);40}41export function satsToBTC(sats) {42 return sats / 100000000;43}44export async function GetUserPreferences(key, defaultValue) { 45 let value = await DefaultPreference.get(key);46 if(value == undefined){47 return defaultValue;48 }49 return value;50}51export async function SetUserPreferences(key, value) {52 await DefaultPreference.set(key, value)53 let res = "saved " + key + " : " + value;54 return res;55}56export function GetLNDConf(network, backend, password, peers, fixedPeer, tor) {57 var configString = "[Application Options]\n\n";58 configString += "maxbackoff=2s\n"59 configString += "debuglevel=info\n"60 61 //configString += "listen=localhost\n"62 configString += "listen=0.0.0.0:9730\n"//so it doesnt clash with other wallets 63 //configString += "sync-freelist=0\n"64 configString += "rpclisten=127.0.0.1:10009\n"65 configString += "restlisten=127.0.0.1:8080\n"66 configString += "maxlogfiles=3\n"67 configString += "maxlogfilesize=10\n"68 configString += "maxpendingchannels=2\n"69 configString += "\n[Bitcoin]\n\n"70 configString += "bitcoin.active=1\n"71 if (network == "testnet") {72 configString += "bitcoin.testnet=1\n"73 } else {74 configString += "bitcoin.mainnet=1\n"75 }76 configString += "bitcoin.defaultchanconfs=1\n"77 if (backend === "bitcoind") {78 configString += "bitcoin.node=bitcoind\n"79 } else {80 configString += "bitcoin.node=neutrino\n"81 }82 if (backend === "bitcoind") {83 configString += "\n[Bitcoind]\n\n"84 configString += "bitcoind.rpchost=localhost\n";85 configString += "bitcoind.rpcpass="+password+"\n";86 configString += "bitcoind.rpcuser=bitcoinrpc\n";87 configString += "bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332\n"88 configString += "bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333\n"89 }90 if(tor === "true"){91 configString += "\n[Tor]\n\n"92 configString += "tor.active=true\n"93 //configString += "tor.socks=127.0.0.1:9050\n"94 configString += "tor.streamisolation=true\n"95 configString += "tor.v3=true\n"96 }97 98 configString += "\n[Routing]\n\n"99 configString += "routing.assumechanvalid=1\n"100 configString += "\n[Autopilot]\n\n"101 configString += "autopilot.active=0\n"102 configString += "autopilot.allocation=0.95\n"103 configString += "autopilot.minconfs=1\n"104 configString += "autopilot.private=1\n"105 configString += "autopilot.allocation=0.95\n"106 configString += "autopilot.heuristic=externalscore:0.95\n"107 configString += "autopilot.heuristic=preferential:0.05\n"108 configString += "\n[wtclient]\n\n"109 configString += "wtclient.active=1\n"110 configString += "wtclient.sweep-fee-rate=20\n"111 if (backend === "neutrino") {112 configString += "\n[Neutrino]\n\n"113console.log("fixed peer",fixedPeer);114 if( fixedPeer === ""){115 peers.forEach(aPeer=> {116 configString += "neutrino.addpeer=" +aPeer + "\n"; 117 });118 }else{119 configString += "neutrino.connect=" + fixedPeer + "\n"; 120 }121 122 123 if (network === "testnet") {124 var feeUrl = "https://nodes.lightning.computer/fees/v1/btctestnet-fee-estimates.json";125 } else {126 var feeUrl = "https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json";127 }128 configString += "neutrino.feeurl=" + feeUrl + "\n"129 }130 console.log("config string", configString);131 return configString;132}133export function GetBitcoinConf(network, password, maxMemory) {134 var config = ""135 config += "listen=1\n";136 config += "disablewallet=1\n";137 config += network + "=1\n"; 138 config += "prune=550\n";139 config += "upnp=0\n";140 config += "blocksonly=1\n";141 config += "bitcoind.rpchost=localhost\n";142 config += "rpcpassword="+password+"\n";143 config += "rpcuser=bitcoinrpc\n";144 config += "server=1\n";145 config += "maxuploadtarget=0\n";146 console.log("Max memory is",maxMemory);147 148 149 var mem = Math.floor((1902936064 / 1000000) / 2);150 151 config += "dbcache="+mem+"\n"; 152 config += "zmqpubrawblock=tcp://127.0.0.1:28332\n"153 config += "zmqpubrawtx=tcp://127.0.0.1:28333\n"154 console.log(config);155 return config;156}157export function GetTestnetPeers(){158 var peers = [];159 peers.push("203.132.95.10:9735");160 peers.push("50.116.3.223:9734");161 peers.push("3.16.119.191:9735"); 162 peers.push("13.248.222.197:9735");163 peers.push("faucet.lightning.community"); 164 return peers; 165}166export function TimeoutPromise(timeout, err, promise) {167 return new Promise(function(resolve,reject) {168 promise.then(resolve,reject);169 setTimeout(reject.bind(null,err), timeout);170 });171}172export function IsJSON(jsonStr) {173 if (/^[\],:{}\s]*$/.test(jsonStr.replace(/\\["\\\/bfnrtu]/g, '@').174 replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').175 replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {176 return true;177 }178 return false;179}...
Using AI Code Generation
1const { configString } = require('storybook-root-config');2const { config } = require('storybook-root-config');3const { webpackFinal } = require('storybook-root-config');4module.exports = {5 stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],6 core: {7 },8};9const { config } = require('storybook-root-config');10module.exports = config;11const { configString } = require('storybook-root-config');12module.exports = configString;13const { webpackFinal } = require('storybook-root-config');14module.exports = webpackFinal;
Using AI Code Generation
1import { configString } from 'storybook-root';2import { configString } from 'storybook-root';3import { configString } from 'storybook-root';4import { configString } from 'storybook-root';5import { configString } from 'storybook-root';6import { configString } from 'storybook-root';7import { configString } from 'storybook-root';8import { configString } from 'storybook-root';9import { configString } from 'storybook-root';10import { configString } from 'storybook-root';11import { configString } from 'storybook-root';12import { configString } from 'storybook-root';13import { configString } from 'storybook-root';14import { configString } from 'storybook-root';15import { configString } from 'storybook-root';16import { configString } from 'storybook-root';17import { configString } from 'storybook-root';18import { configString } from 'storybook-root';19import { configString } from 'storybook-root';20import { configString } from 'storybook-root';
Using AI Code Generation
1const configString = require('storybook-root').configString;2const config = configString({configDir: __dirname});3const configDir = require('storybook-root').configDir;4const config = configDir(__dirname);5const config = require('storybook-root')(__dirname);6module.exports = config;7{8}9{10 "storybook": {11 "config": {12 }13 }14}15const config = require('storybook-root')(__dirname, 'path/to/custom/config.js');16{17 "storybook": {18 "config": {19 }20 }21}22const config = require('storybook-root')(__dirname, null, 'path/to/custom/webpack.config.js');23{24 "storybook": {25 "config": {26 }27 }28}29const config = require('storybook-root')(__dirname, null, null, 'path/to/custom/babel.config.js');30{31 "storybook": {32 "config": {33 }34 }35}36const config = require('storybook-root')(__dirname, null, null, null, 'path/to/custom/addons.config.js');37{38 "storybook": {39 "config": {
Using AI Code Generation
1const { getStorybookUI, configure } = require('@storybook/react-native');2const { configString } = require('@storybook/react-native/dist/preview/helpers');3const StorybookUIRoot = getStorybookUI({ port: 7007, host: 'localhost' });4const storybook = () => {5 configure(configString, module);6 return StorybookUIRoot;7};8module.exports = storybook;9const storybook = require('./storybook');10AppRegistry.registerComponent(appName, () => storybook);11import '@storybook/addon-ondevice-actions/register';12import '@storybook/addon-ondevice-knobs/register';13import '@storybook/addon-ondevice-notes/register';14import '@storybook/addon-ondevice-viewport/register';15import '@storybook/addon-ondevice-backgrounds/register';16import '@storybook/addon-ondevice-a11y/register';17import '@storybook/addon-ondevice-console/register';18import 'storybook-addon-react-native-storysource/register';19import 'storybook-addon-xd-designs/register';20import 'storybook-addon-react-native-webview/register';21import 'storybook-addon-jsx/register';22import 'storybook-mobile/register';23import 'storybook-addon-react-native-webview/register';24import '@storybook/addon-actions/register';25import '@storybook/addon-links/register';26import '@storybook/addon-knobs/register';27import '@storybook/addon-notes/register';28import '@storybook/addon-viewport/register';29import '@storybook/addon-backgrounds/register';30import '@storybook/addon-a11y/register';31import '@storybook/addon-console/register';32import 'storybook-addon-react-native-storysource/register';33import 'storybook-addon-xd-designs/register';34import 'storybook-addon-react-native-webview/register';35import 'storybook-addon-jsx/register';36import 'storybook
Using AI Code Generation
1const { configString } = require('@storybook/core/server');2const { getCustomConfig } = require('./customConfig');3module.exports = {4 webpackFinal: async (config, { configType }) => {5 const customConfig = getCustomConfig(configType);6 const storybookConfig = configString(customConfig, configType);7 return storybookConfig;8 }9};10const path = require('path');11const { addBabelPlugin, addBabelPreset } = require('customize-cra');12module.exports = {13 webpackFinal: async (config, { configType }) => {14 config.resolve.alias = {15 '@storybook/addon-actions': path.resolve(16 };17 config = addBabelPlugin('babel-plugin-styled-components', config);18 config = addBabelPreset('@emotion/babel-preset-css-prop', config);19 return config;20 }21};22{23}24module.exports = {25 webpackFinal: async (config, { configType }) => {26 config.resolve.alias = {27 '@storybook/addon-actions': path.resolve(28 };29 config = addBabelPlugin('babel-plugin-styled-components', config);30 config = addBabelPreset('@emotion/babel-preset-css-prop', config);31 return config;32 }33};34const path = require('path');35const { addBabelPlugin, addBabelPreset } = require('customize-cra');36module.exports = async ({ config, mode }) => {37 config.resolve.alias = {38 '@storybook/addon-actions': path.resolve(39 };
Using AI Code Generation
1const configString = require('storybook-root-config');2const config = configString();3module.exports = config;4module.exports = {5 stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],6};7"config": {8 }9const configString = require('storybook-root-config');10const config = configString();11module.exports = config;
Using AI Code Generation
1import configString from 'storybook-root';2export default configString;3import configString from '../test.js';4export default configString;5const models = require('../../models');6const models = require('../models');7const config = require('../../config');8const config = require('../config');9const models = require('app/models');10const models = require('app/models');11const config = require('config');12const config = require('config');13const express = require('../../node_modules/express');14const express = require('../node_modules/express');15const express = require('node_modules/express');16const express = require('node_modules/express');
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!