Best JavaScript code snippet using fast-check-monorepo
cols.js
Source:cols.js
1(function() {2 tinymce.create('tinymce.plugins.momcols', {3 init : function(ed, url) {4 },5 createControl : function(n, cm) {6 if(n=='momcols'){7 var mlb = cm.createListBox('momcols', {8 title : 'Columns',9 onselect : function(v) {10 if(v == 'one_half'){11 selected = tinyMCE.activeEditor.selection.getContent();12 if( selected ){13 content = '[one_half]'+selected+'[/one_half]';14 }else{15 content = '[one_half][/one_half]';16 }17 tinymce.execCommand('mceInsertContent', false, content);18 }19 if(v == 'one_half_last'){20 selected = tinyMCE.activeEditor.selection.getContent();21 if( selected ){22 //If text is selected when button is clicked23 //Wrap shortcode around it.24 content = '[one_half_last]'+selected+'[/one_half_last]';25 }else{26 content = '[one_half_last][/one_half_last]';27 }28 tinymce.execCommand('mceInsertContent', false, content);29 }30 if(v == 'one_third'){31 selected = tinyMCE.activeEditor.selection.getContent();32 if( selected ){33 content = '[one_third]'+selected+'[/one_third]';34 }else{35 content = '[one_third][/one_third]';36 }37 tinymce.execCommand('mceInsertContent', false, content);38 }39 if(v == 'one_third_last'){40 selected = tinyMCE.activeEditor.selection.getContent();41 if( selected ){42 //If text is selected when button is clicked43 //Wrap shortcode around it.44 content = '[one_third_last]'+selected+'[/one_third_last]';45 }else{46 content = '[one_third_last][/one_third_last]';47 }48 tinymce.execCommand('mceInsertContent', false, content);49 }50 if(v == 'one_fourth'){51 selected = tinyMCE.activeEditor.selection.getContent();52 if( selected ){53 content = '[one_fourth]'+selected+'[/one_fourth]';54 }else{55 content = '[one_fourth][/one_fourth]';56 }57 tinymce.execCommand('mceInsertContent', false, content);58 }59 if(v == 'one_fourth_last'){60 selected = tinyMCE.activeEditor.selection.getContent();61 if( selected ){62 //If text is selected when button is clicked63 //Wrap shortcode around it.64 content = '[one_fourth_last]'+selected+'[/one_fourth_last]';65 }else{66 content = '[one_fourth_last][/one_fourth_last]';67 }68 tinymce.execCommand('mceInsertContent', false, content);69 }70 if(v == 'one_fifth'){71 selected = tinyMCE.activeEditor.selection.getContent();72 if( selected ){73 content = '[one_fifth]'+selected+'[/one_fifth]';74 }else{75 content = '[one_fifth][/one_fifth]';76 }77 tinymce.execCommand('mceInsertContent', false, content);78 }79 if(v == 'one_fifth_last'){80 selected = tinyMCE.activeEditor.selection.getContent();81 if( selected ){82 //If text is selected when button is clicked83 //Wrap shortcode around it.84 content = '[one_fifth_last]'+selected+'[/one_fifth_last]';85 }else{86 content = '[one_fifth_last][/one_fifth_last]';87 }88 tinymce.execCommand('mceInsertContent', false, content);89 }90 if(v == 'one_sixth'){91 selected = tinyMCE.activeEditor.selection.getContent();92 if( selected ){93 content = '[one_sixth]'+selected+'[/one_sixth]';94 }else{95 content = '[one_sixth][/one_sixth]';96 }97 tinymce.execCommand('mceInsertContent', false, content);98 }99 if(v == 'one_sixth_last'){100 selected = tinyMCE.activeEditor.selection.getContent();101 if( selected ){102 //If text is selected when button is clicked103 //Wrap shortcode around it.104 content = '[one_sixth_last]'+selected+'[/one_sixth_last]';105 }else{106 content = '[one_sixth_last][/one_sixth_last]';107 }108 tinymce.execCommand('mceInsertContent', false, content);109 }110 if(v == 'two_third'){111 selected = tinyMCE.activeEditor.selection.getContent();112 if( selected ){113 content = '[two_third]'+selected+'[/two_third]';114 }else{115 content = '[two_third][/two_third]';116 }117 tinymce.execCommand('mceInsertContent', false, content);118 }119 if(v == 'two_third_last'){120 selected = tinyMCE.activeEditor.selection.getContent();121 if( selected ){122 //If text is selected when button is clicked123 //Wrap shortcode around it.124 content = '[two_third_last]'+selected+'[/two_third_last]';125 }else{126 content = '[two_third_last][/two_third_last]';127 }128 tinymce.execCommand('mceInsertContent', false, content);129 }130 if(v == 'two_fourth'){131 selected = tinyMCE.activeEditor.selection.getContent();132 if( selected ){133 content = '[two_fourth]'+selected+'[/two_fourth]';134 }else{135 content = '[two_fourth][/two_fourth]';136 }137 tinymce.execCommand('mceInsertContent', false, content);138 }139 if(v == 'two_fourth_last'){140 selected = tinyMCE.activeEditor.selection.getContent();141 if( selected ){142 //If text is selected when button is clicked143 //Wrap shortcode around it.144 content = '[two_fourth_last]'+selected+'[/two_fourth_last]';145 }else{146 content = '[two_fourth_last][/two_fourth_last]';147 }148 tinymce.execCommand('mceInsertContent', false, content);149 }150 if(v == 'two_fifth'){151 selected = tinyMCE.activeEditor.selection.getContent();152 if( selected ){153 content = '[two_fifth]'+selected+'[/two_fifth]';154 }else{155 content = '[two_fifth][/two_fifth]';156 }157 tinymce.execCommand('mceInsertContent', false, content);158 }159 if(v == 'two_fifth_last'){160 selected = tinyMCE.activeEditor.selection.getContent();161 if( selected ){162 //If text is selected when button is clicked163 //Wrap shortcode around it.164 content = '[two_fifth_last]'+selected+'[/two_fifth_last]';165 }else{166 content = '[two_fifth_last][/two_fifth_last]';167 }168 tinymce.execCommand('mceInsertContent', false, content);169 }170 if(v == 'two_sixth'){171 selected = tinyMCE.activeEditor.selection.getContent();172 if( selected ){173 content = '[two_sixth]'+selected+'[/two_sixth]';174 }else{175 content = '[two_sixth][/two_sixth]';176 }177 tinymce.execCommand('mceInsertContent', false, content);178 }179 if(v == 'two_sixth_last'){180 selected = tinyMCE.activeEditor.selection.getContent();181 if( selected ){182 //If text is selected when button is clicked183 //Wrap shortcode around it.184 content = '[two_sixth_last]'+selected+'[/two_sixth_last]';185 }else{186 content = '[two_sixth_last][/two_sixth_last]';187 }188 tinymce.execCommand('mceInsertContent', false, content);189 }190 if(v == 'three_fourth'){191 selected = tinyMCE.activeEditor.selection.getContent();192 if( selected ){193 content = '[three_fourth]'+selected+'[/three_fourth]';194 }else{195 content = '[three_fourth][/three_fourth]';196 }197 tinymce.execCommand('mceInsertContent', false, content);198 }199 if(v == 'three_fourth_last'){200 selected = tinyMCE.activeEditor.selection.getContent();201 if( selected ){202 //If text is selected when button is clicked203 //Wrap shortcode around it.204 content = '[three_fourth_last]'+selected+'[/three_fourth_last]';205 }else{206 content = '[three_fourth_last][/three_fourth_last]';207 }208 tinymce.execCommand('mceInsertContent', false, content);209 }210 if(v == 'three_fifth'){211 selected = tinyMCE.activeEditor.selection.getContent();212 if( selected ){213 content = '[three_fifth]'+selected+'[/three_fifth]';214 }else{215 content = '[three_fifth][/three_fifth]';216 }217 tinymce.execCommand('mceInsertContent', false, content);218 }219 if(v == 'three_fifth_last'){220 selected = tinyMCE.activeEditor.selection.getContent();221 if( selected ){222 //If text is selected when button is clicked223 //Wrap shortcode around it.224 content = '[three_fifth_last]'+selected+'[/three_fifth_last]';225 }else{226 content = '[three_fifth_last][/three_fifth_last]';227 }228 tinymce.execCommand('mceInsertContent', false, content);229 }230 if(v == 'three_sixth'){231 selected = tinyMCE.activeEditor.selection.getContent();232 if( selected ){233 content = '[three_sixth]'+selected+'[/three_sixth]';234 }else{235 content = '[three_sixth][/three_sixth]';236 }237 tinymce.execCommand('mceInsertContent', false, content);238 }239 if(v == 'three_sixth_last'){240 selected = tinyMCE.activeEditor.selection.getContent();241 if( selected ){242 //If text is selected when button is clicked243 //Wrap shortcode around it.244 content = '[three_sixth_last]'+selected+'[/three_sixth_last]';245 }else{246 content = '[three_sixth_last][/three_sixth_last]';247 }248 tinymce.execCommand('mceInsertContent', false, content);249 }250 if(v == 'four_fifth'){251 selected = tinyMCE.activeEditor.selection.getContent();252 if( selected ){253 content = '[four_fifth]'+selected+'[/four_fifth]';254 }else{255 content = '[four_fifth][/four_fifth]';256 }257 tinymce.execCommand('mceInsertContent', false, content);258 }259 if(v == 'four_fifth_last'){260 selected = tinyMCE.activeEditor.selection.getContent();261 if( selected ){262 //If text is selected when button is clicked263 //Wrap shortcode around it.264 content = '[four_fifth_last]'+selected+'[/four_fifth_last]';265 }else{266 content = '[four_fifth_last][/four_fifth_last]';267 }268 tinymce.execCommand('mceInsertContent', false, content);269 }270 if(v == 'four_sixth'){271 selected = tinyMCE.activeEditor.selection.getContent();272 if( selected ){273 content = '[four_sixth]'+selected+'[/four_sixth]';274 }else{275 content = '[four_sixth][/four_sixth]';276 }277 tinymce.execCommand('mceInsertContent', false, content);278 }279 if(v == 'four_sixth_last'){280 selected = tinyMCE.activeEditor.selection.getContent();281 if( selected ){282 //If text is selected when button is clicked283 //Wrap shortcode around it.284 content = '[four_sixth_last]'+selected+'[/four_sixth_last]';285 }else{286 content = '[four_sixth_last][/four_sixth_last]';287 }288 tinymce.execCommand('mceInsertContent', false, content);289 }290 if(v == 'five_sixth'){291 selected = tinyMCE.activeEditor.selection.getContent();292 if( selected ){293 content = '[five_sixth]'+selected+'[/five_sixth]';294 }else{295 content = '[five_sixth][/five_sixth]';296 }297 tinymce.execCommand('mceInsertContent', false, content);298 }299 if(v == 'five_sixth_last'){300 selected = tinyMCE.activeEditor.selection.getContent();301 if( selected ){302 //If text is selected when button is clicked303 //Wrap shortcode around it.304 content = '[five_sixth_last]'+selected+'[/five_sixth_last]';305 }else{306 content = '[five_sixth_last][/five_sixth_last]';307 }308 tinymce.execCommand('mceInsertContent', false, content);309 }310 }311 });312 // Add some menu items313 var mom_columns = [314 'one_half','one_half_last',315 'one_third','one_third_last',316 'one_fourth','one_fourth_last',317 'one_fifth','one_fifth_last',318 'one_sixth','one_sixth_last',319 'two_third','two_third_last',320 'two_fourth','two_fourth_last',321 'two_fifth','two_fifth_last',322 'two_sixth','two_sixth_last',323 'three_fourth','three_fourth_last',324 'three_fifth','three_fifth_last',325 'three_sixth','three_sixth_last',326 'four_fifth','four_fifth_last',327 'four_sixth','four_sixth_last',328 'five_sixth','five_sixth_last',329 ];330 for(var i in mom_columns)331 mlb.add(mom_columns[i],mom_columns[i]);332 return mlb;333 }334 return null;335 }336 });337 tinymce.PluginManager.add('momcols', tinymce.plugins.momcols);...
dataSet.js
Source:dataSet.js
1export default [2 { id: '1', selected: false },3 { id: '2', selected: false },4 { id: '3', selected: false },5 { id: '4', selected: false },6 { id: '5', selected: false },7 { id: '6', selected: false },8 { id: '7', selected: false },9 { id: '8', selected: false },10 { id: '9', selected: false },11 { id: '10', selected: false },12 { id: '11', selected: false },13 { id: '12', selected: false },14 { id: '13', selected: false },15 { id: '14', selected: false },16 { id: '15', selected: false },17 { id: '16', selected: false },18 { id: '17', selected: false },19 { id: '18', selected: false },20 { id: '19', selected: false },21 { id: '20', selected: false },22 { id: '21', selected: false },23 { id: '22', selected: false },24 { id: '23', selected: false },25 { id: '24', selected: false },26 { id: '25', selected: false },27 { id: '26', selected: false },28 { id: '27', selected: false },29 { id: '28', selected: false },30 { id: '29', selected: false },31 { id: '30', selected: false },32 { id: '31', selected: false },33 { id: '32', selected: false },34 { id: '33', selected: false },35 { id: '34', selected: false },36 { id: '35', selected: false },37 // { id: '36', selected: false },38 // { id: '37', selected: false },39 // { id: '38', selected: false },40 // { id: '39', selected: false },41 // { id: '40', selected: false },42 // { id: '41', selected: false },43 // { id: '42', selected: false },44 // { id: '43', selected: false },45 // { id: '44', selected: false },46 // { id: '45', selected: false },47 // { id: '46', selected: false },48 // { id: '47', selected: false },49 // { id: '48', selected: false },50 // { id: '49', selected: false },51 // { id: '50', selected: false },52 // { id: '51', selected: false },53 // { id: '52', selected: false },54 // { id: '53', selected: false },55 // { id: '54', selected: false },56 // { id: '55', selected: false },57 // { id: '56', selected: false },58 // { id: '57', selected: false },59 // { id: '58', selected: false },60 // { id: '59', selected: false },61 // { id: '60', selected: false },62 // { id: '61', selected: false },63 // { id: '62', selected: false },64 // { id: '63', selected: false },65 // { id: '64', selected: false },66 // { id: '65', selected: false },67 // { id: '66', selected: false },68 // { id: '67', selected: false },69 // { id: '68', selected: false },70 // { id: '69', selected: false },71 // { id: '70', selected: false },72 // { id: '71', selected: false },73 // { id: '72', selected: false },74 // { id: '73', selected: false },75 // { id: '74', selected: false },76 // { id: '75', selected: false },77 // { id: '76', selected: false },78 // { id: '77', selected: false },79 // { id: '78', selected: false },80 // { id: '79', selected: false },81 // { id: '80', selected: false },82 // { id: '81', selected: false },83 // { id: '82', selected: false },84 // { id: '83', selected: false },85 // { id: '84', selected: false },86 // { id: '85', selected: false },87 // { id: '86', selected: false },88 // { id: '87', selected: false },89 // { id: '88', selected: false },90 // { id: '89', selected: false },91 // { id: '90', selected: false },92 // { id: '91', selected: false },93 // { id: '92', selected: false },94 // { id: '93', selected: false },95 // { id: '94', selected: false },96 // { id: '95', selected: false },97 // { id: '96', selected: false },98 // { id: '97', selected: false },99 // { id: '98', selected: false },100 // { id: '99', selected: false },101 // { id: '100', selected: false },102 // { id: '101', selected: false },103 // { id: '102', selected: false },104 // { id: '103', selected: false },105 // { id: '104', selected: false },106 // { id: '105', selected: false },107 // { id: '106', selected: false },108 // { id: '107', selected: false },109 // { id: '108', selected: false },110 // { id: '109', selected: false },111 // { id: '110', selected: false },112 // { id: '111', selected: false },113 // { id: '112', selected: false },114 // { id: '113', selected: false },115 // { id: '114', selected: false },116 // { id: '115', selected: false },117 // { id: '116', selected: false },118 // { id: '117', selected: false },119 // { id: '118', selected: false },120 // { id: '119', selected: false },121 // { id: '120', selected: false },122 // { id: '121', selected: false },123 // { id: '122', selected: false },124 // { id: '123', selected: false },125 // { id: '124', selected: false },126 // { id: '125', selected: false },127 // { id: '126', selected: false },128 // { id: '127', selected: false },129 // { id: '128', selected: false },130 // { id: '129', selected: false },131 // { id: '130', selected: false },132 // { id: '131', selected: false },133 // { id: '132', selected: false },134 // { id: '133', selected: false },135 // { id: '134', selected: false },136 // { id: '135', selected: false },137 // { id: '136', selected: false },138 // { id: '137', selected: false },139 // { id: '138', selected: false },140 // { id: '139', selected: false },141 // { id: '140', selected: false },142 // { id: '141', selected: false },143 // { id: '142', selected: false },144 // { id: '143', selected: false },145 // { id: '144', selected: false },146 // { id: '145', selected: false },147 // { id: '146', selected: false },148 // { id: '147', selected: false },149 // { id: '148', selected: false },150 // { id: '149', selected: false },151 // { id: '150', selected: false },152 // { id: '151', selected: false },153 // { id: '152', selected: false },154 // { id: '153', selected: false },155 // { id: '154', selected: false },156 // { id: '155', selected: false },157 // { id: '156', selected: false },158 // { id: '157', selected: false },159 // { id: '158', selected: false },160 // { id: '159', selected: false },161 // { id: '160', selected: false },162 // { id: '161', selected: false },163 // { id: '162', selected: false },164 // { id: '163', selected: false },165 // { id: '164', selected: false },166 // { id: '165', selected: false },167 // { id: '166', selected: false },168 // { id: '167', selected: false },169 // { id: '168', selected: false },170 // { id: '169', selected: false },171 // { id: '170', selected: false },172 // { id: '171', selected: false },173 // { id: '172', selected: false },174 // { id: '173', selected: false },175 // { id: '174', selected: false },176 // { id: '175', selected: false },177 // { id: '176', selected: false },178 // { id: '177', selected: false },179 // { id: '178', selected: false },180 // { id: '179', selected: false },181 // { id: '180', selected: false },182 // { id: '181', selected: false },183 // { id: '182', selected: false },184 // { id: '183', selected: false },185 // { id: '184', selected: false },186 // { id: '185', selected: false },187 // { id: '186', selected: false },188 // { id: '187', selected: false },189 // { id: '188', selected: false },190 // { id: '189', selected: false },191 // { id: '190', selected: false },192 // { id: '191', selected: false },193 // { id: '192', selected: false },194 // { id: '193', selected: false },195 // { id: '194', selected: false },196 // { id: '195', selected: false },197 // { id: '196', selected: false },198 // { id: '197', selected: false },199 // { id: '198', selected: false },200 // { id: '199', selected: false },201 // { id: '200', selected: false },202 // { id: '201', selected: false },203 // { id: '202', selected: false },204 // { id: '203', selected: false },205 // { id: '204', selected: false },206 // { id: '205', selected: false },207 // { id: '206', selected: false },208 // { id: '207', selected: false },209 // { id: '208', selected: false },210 // { id: '209', selected: false },211 // { id: '210', selected: false },212 // { id: '211', selected: false },213 // { id: '212', selected: false },214 // { id: '213', selected: false },215 // { id: '214', selected: false },216 // { id: '215', selected: false },217 // { id: '216', selected: false },218 // { id: '217', selected: false },219 // { id: '218', selected: false },220 // { id: '219', selected: false },221 // { id: '220', selected: false },222 // { id: '221', selected: false },223 // { id: '222', selected: false },224 // { id: '223', selected: false },225 // { id: '224', selected: false },226 // { id: '225', selected: false },227 // { id: '226', selected: false },228 // { id: '227', selected: false },229 // { id: '228', selected: false },230 // { id: '229', selected: false },231 // { id: '230', selected: false },232 // { id: '231', selected: false },233 // { id: '232', selected: false },234 // { id: '233', selected: false },235 // { id: '234', selected: false },236 // { id: '235', selected: false },237 // { id: '236', selected: false },238 // { id: '237', selected: false },239 // { id: '238', selected: false },240 // { id: '239', selected: false },241 // { id: '240', selected: false },242 // { id: '241', selected: false },243 // { id: '242', selected: false },244 // { id: '243', selected: false },245 // { id: '244', selected: false },246 // { id: '245', selected: false },247 // { id: '246', selected: false },248 // { id: '247', selected: false },249 // { id: '248', selected: false },250 // { id: '249', selected: false },251 // { id: '250', selected: false },252 // { id: '251', selected: false },253 // { id: '252', selected: false },254 // { id: '253', selected: false },255 // { id: '254', selected: false },256 // { id: '255', selected: false },257 // { id: '256', selected: false },258 // { id: '257', selected: false },259 // { id: '258', selected: false },260 // { id: '259', selected: false },261 // { id: '260', selected: false },262 // { id: '261', selected: false },263 // { id: '262', selected: false },264 // { id: '263', selected: false },265 // { id: '264', selected: false },266 // { id: '265', selected: false },267 // { id: '266', selected: false },268 // { id: '267', selected: false },269 // { id: '268', selected: false },270 // { id: '269', selected: false },271 // { id: '270', selected: false },272 // { id: '271', selected: false },273 // { id: '272', selected: false },274 // { id: '273', selected: false },275 // { id: '274', selected: false },276 // { id: '275', selected: false },277 // { id: '276', selected: false },278 // { id: '277', selected: false },279 // { id: '278', selected: false },280 // { id: '279', selected: false },281 // { id: '280', selected: false },282 // { id: '281', selected: false },283 // { id: '282', selected: false },284 // { id: '283', selected: false },285 // { id: '284', selected: false },286 // { id: '285', selected: false },287 // { id: '286', selected: false },288 // { id: '287', selected: false },289 // { id: '288', selected: false },290 // { id: '289', selected: false },291 // { id: '290', selected: false },292 // { id: '291', selected: false },293 // { id: '292', selected: false },294 // { id: '293', selected: false },295 // { id: '294', selected: false },296 // { id: '295', selected: false },297 // { id: '296', selected: false },298 // { id: '297', selected: false },299 // { id: '298', selected: false },300 // { id: '299', selected: false },301 // { id: '300', selected: false },302 // { id: '301', selected: false },303 // { id: '302', selected: false },304 // { id: '303', selected: false },305 // { id: '304', selected: false },306 // { id: '305', selected: false },307 // { id: '306', selected: false },308 // { id: '307', selected: false },309 // { id: '308', selected: false },310 // { id: '309', selected: false },311 // { id: '310', selected: false },312 // { id: '311', selected: false },313 // { id: '312', selected: false },314 // { id: '313', selected: false },315 // { id: '314', selected: false },316 // { id: '315', selected: false },317 // { id: '316', selected: false },318 // { id: '317', selected: false },319 // { id: '318', selected: false },320 // { id: '319', selected: false },321 // { id: '320', selected: false },322 // { id: '321', selected: false },323 // { id: '322', selected: false },324 // { id: '323', selected: false },325 // { id: '324', selected: false },326 // { id: '325', selected: false },327 // { id: '326', selected: false },328 // { id: '327', selected: false },329 // { id: '328', selected: false },330 // { id: '329', selected: false },331 // { id: '330', selected: false },332 // { id: '331', selected: false },333 // { id: '332', selected: false },334 // { id: '333', selected: false },335 // { id: '334', selected: false },336 // { id: '335', selected: false },337 // { id: '336', selected: false },338 // { id: '337', selected: false },339 // { id: '338', selected: false },340 // { id: '339', selected: false },341 // { id: '340', selected: false },342 // { id: '341', selected: false },343 // { id: '342', selected: false },344 // { id: '343', selected: false },345 // { id: '344', selected: false },346 // { id: '345', selected: false },347 // { id: '346', selected: false },348 // { id: '347', selected: false },349 // { id: '348', selected: false },350 // { id: '349', selected: false },351 // { id: '350', selected: false },352 // { id: '351', selected: false },353 // { id: '352', selected: false },354 // { id: '353', selected: false },355 // { id: '354', selected: false },356 // { id: '355', selected: false },357 // { id: '356', selected: false },358 // { id: '357', selected: false },359 // { id: '358', selected: false },360 // { id: '359', selected: false },361 // { id: '360', selected: false },362 // { id: '361', selected: false },363 // { id: '362', selected: false },364 // { id: '363', selected: false },365 // { id: '364', selected: false },366 // { id: '365', selected: false },367 // { id: '366', selected: false },368 // { id: '367', selected: false },369 // { id: '368', selected: false },370 // { id: '369', selected: false },371 // { id: '370', selected: false },372 // { id: '371', selected: false },373 // { id: '372', selected: false },374 // { id: '373', selected: false },375 // { id: '374', selected: false },376 // { id: '375', selected: false },377 // { id: '376', selected: false },378 // { id: '377', selected: false },379 // { id: '378', selected: false },380 // { id: '379', selected: false },381 // { id: '380', selected: false },382 // { id: '381', selected: false },383 // { id: '382', selected: false },384 // { id: '383', selected: false },385 // { id: '384', selected: false },386 // { id: '385', selected: false },387 // { id: '386', selected: false },388 // { id: '387', selected: false },389 // { id: '388', selected: false },390 // { id: '389', selected: false },391 // { id: '390', selected: false },392 // { id: '391', selected: false },393 // { id: '392', selected: false },394 // { id: '393', selected: false },395 // { id: '394', selected: false },396 // { id: '395', selected: false },397 // { id: '396', selected: false },398 // { id: '397', selected: false },399 // { id: '398', selected: false },400 // { id: '399', selected: false },401 // { id: '400', selected: false },402 // { id: '401', selected: false },403 // { id: '402', selected: false },404 // { id: '403', selected: false },405 // { id: '404', selected: false },406 // { id: '405', selected: false },407 // { id: '406', selected: false },408 // { id: '407', selected: false },409 // { id: '408', selected: false },410 // { id: '409', selected: false },411 // { id: '410', selected: false },412 // { id: '411', selected: false },413 // { id: '412', selected: false },414 // { id: '413', selected: false },415 // { id: '414', selected: false },416 // { id: '415', selected: false },417 // { id: '416', selected: false },418 // { id: '417', selected: false },419 // { id: '418', selected: false },420 // { id: '419', selected: false },421 // { id: '420', selected: false },422 // { id: '421', selected: false },423 // { id: '422', selected: false },424 // { id: '423', selected: false },425 // { id: '424', selected: false },426 // { id: '425', selected: false },427 // { id: '426', selected: false },428 // { id: '427', selected: false },429 // { id: '428', selected: false },430 // { id: '429', selected: false },431 // { id: '430', selected: false },432 // { id: '431', selected: false },433 // { id: '432', selected: false },434 // { id: '433', selected: false },435 // { id: '434', selected: false },436 // { id: '435', selected: false },437 // { id: '436', selected: false },438 // { id: '437', selected: false },439 // { id: '438', selected: false },440 // { id: '439', selected: false },441 // { id: '440', selected: false },442 // { id: '441', selected: false },443 // { id: '442', selected: false },444 // { id: '443', selected: false },445 // { id: '444', selected: false },446 // { id: '445', selected: false },447 // { id: '446', selected: false },448 // { id: '447', selected: false },449 // { id: '448', selected: false },450 // { id: '449', selected: false },451 // { id: '450', selected: false },...
mytime.js
Source:mytime.js
1export const column = [2 { name: "day", label: "day" },3 { name: "twelve", label: "12:00" },4 { name: "two", label: "14:00" },5 { name: "four", label: "16:00" },6 { name: "six", label: "18:00" },7 { name: "eight", label: "20:00" },8 { name: "ten", label: "22:00" }9];10export const row = [11 {12 day: "Mon",13 twelve: { checked: 1, selected: 0 },14 two: { checked: 0, selected: 0 },15 four: { checked: 1, selected: 0 },16 six: { checked: 0, selected: 0 },17 eight: { checked: 1, selected: 0 },18 ten: { checked: 0, selected: 0 }19 },20 {21 day: "Tue",22 twelve: { checked: 0, selected: 0 },23 two: { checked: 0, selected: 0 },24 four: { checked: 0, selected: 0 },25 six: { checked: 0, selected: 0 },26 eight: { checked: 1, selected: 0 },27 ten: { checked: 0, selected: 0 }28 },29 {30 day: "Wed",31 twelve: { checked: 0, selected: 0 },32 two: { checked: 1, selected: 0 },33 four: { checked: 1, selected: 0 },34 six: { checked: 0, selected: 0 },35 eight: { checked: 1, selected: 0 },36 ten: { checked: 1, selected: 0 }37 },38 {39 day: "Thu",40 twelve: { checked: 0, selected: 0 },41 two: { checked: 1, selected: 0 },42 four: { checked: 0, selected: 0 },43 six: { checked: 0, selected: 0 },44 eight: { checked: 0, selected: 0 },45 ten: { checked: 0, selected: 0 }46 },47 {48 day: "Fri",49 twelve: { checked: 0, selected: 0 },50 two: { checked: 0, selected: 0 },51 four: { checked: 1, selected: 0 },52 six: { checked: 0, selected: 0 },53 eight: { checked: 0, selected: 0 },54 ten: { checked: 1, selected: 0 }55 },56 {57 day: "Sat",58 twelve: { checked: 0, selected: 0 },59 two: { checked: 0, selected: 0 },60 four: { checked: 0, selected: 0 },61 six: { checked: 1, selected: 0 },62 eight: { checked: 0, selected: 0 },63 ten: { checked: 1, selected: 0 }64 },65 {66 day: "Sun",67 twelve: { checked: 0, selected: 0 },68 two: { checked: 0, selected: 0 },69 four: { checked: 1, selected: 0 },70 six: { checked: 0, selected: 0 },71 eight: { checked: 1, selected: 0 },72 ten: { checked: 0, selected: 0 }73 }...
Using AI Code Generation
1const fc = require("fast-check");2fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));3const fc = require("fast-check");4fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));5const fc = require("fast-check");6fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));7const fc = require("fast-check");8fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));9const fc = require("fast-check");10fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));11const fc = require("fast-check");12fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));13const fc = require("fast-check");14fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));15const fc = require("fast-check");16fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));17const fc = require("fast-check");18fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));19const fc = require("fast-check");20fc.assert(fc.property(fc.integer(), fc.integer(), (a, b) => a + b >= a));
Using AI Code Generation
1const fc = require("fast-check");2fc.assert(3 fc.property(fc.integer(), fc.integer(), (a, b) => {4 if (a > b) {5 return a - b > 0;6 } else {7 return b - a > 0;8 }9 })10);11const fc = require("fast-check");12fc.assert(13 fc.property(fc.integer(), fc.integer(), (a, b) => {14 if (a > b) {15 return a - b > 0;16 } else {17 return b - a > 0;18 }19 })20);21const fc = require("fast-check");22fc.assert(23 fc.property(fc.integer(), fc.integer(), (a, b) => {24 if (a > b) {25 return a - b > 0;26 } else {27 return b - a > 0;28 }29 })30);31const fc = require("fast-check");32fc.assert(33 fc.property(fc.integer(), fc.integer(), (a, b) => {34 if (a > b) {35 return a - b > 0;36 } else {37 return b - a > 0;38 }39 })40);41const fc = require("fast-check");42fc.assert(43 fc.property(fc.integer(), fc.integer(), (a, b) => {44 if (a > b) {45 return a - b > 0;46 } else {47 return b - a > 0;48 }49 })50);51const fc = require("fast-check");52fc.assert(53 fc.property(fc.integer(), fc.integer(), (a, b) => {54 if (a > b) {55 return a - b > 0;56 } else {57 return b - a > 0;58 }59 })60);61const fc = require("fast
Using AI Code Generation
1const fc = require('fast-check');2const arb = fc.integer(0, 100);3fc.assert(4 fc.property(arb, (n) => {5 return n >= 0 && n <= 100;6 })7);8const fc = require('fast-check');9const arb = fc.integer(0, 100);10fc.assert(11 fc.property(arb, (n) => {12 return n >= 0 && n <= 100;13 })14);15const fc = require('fast-check');16const arb = fc.integer(0, 100);17fc.assert(18 fc.property(arb, (n) => {19 return n >= 0 && n <= 100;20 })21);22const fc = require('fast-check');23const arb = fc.integer(0, 100);24fc.assert(25 fc.property(arb, (n) => {26 return n >= 0 && n <= 100;27 })28);29const fc = require('fast-check');30const arb = fc.integer(0, 100);31fc.assert(32 fc.property(arb, (n) => {33 return n >= 0 && n <= 100;34 })35);36const fc = require('fast-check');37const arb = fc.integer(0, 100);38fc.assert(39 fc.property(arb, (n) => {40 return n >= 0 && n <= 100;41 })42);43const fc = require('fast-check');44const arb = fc.integer(0, 100);45fc.assert(46 fc.property(arb, (n) => {47 return n >= 0 && n <= 100;48 })49);50const fc = require('fast-check');51const arb = fc.integer(0, 100);52fc.assert(
Using AI Code Generation
1const fc = require('fast-check');2const { integer } = fc;3const { property } = fc;4const { add } = require('./add');5property('addition is commutative', integer(), integer(), (a, b) => {6 return add(a, b) === add(b, a);7});8property('addition is associative', integer(), integer(), integer(), (a, b, c) => {9 return add(add(a, b), c) === add(a, add(b, c));10});11property('addition has identity', integer(), (a) => {12 return add(a, 0) === a;13});14property('addition has inverse', integer(), (a) => {15 return add(a, -a) === 0;16});17property('addition has distributivity', integer(), integer(), integer(), (a, b, c) => {18 return add(a, add(b, c)) === add(add(a, b), add(a, c));19});20property('addition has associativity', integer(), integer(), integer(), (a, b, c) => {21 return add(a, add(b, c)) === add(add(a, b), c);22});23property('addition has identity', integer(), (a) => {24 return add(a, 0) === a;25});26property('addition has inverse', integer(), (a) => {27 return add(a, -a) === 0;28});29property('addition has distributivity', integer(), integer(), integer(), (a, b, c) => {30 return add(a, add(b, c)) === add(add(a, b), add(a, c));31});32const fc = require('fast-check');33const { integer } = fc;34const { property } = fc;35const { add } = require('./add');36property('addition is commutative', integer(), integer(), (a, b) => {37 return add(a, b) === add(b, a);38});39property('addition is associative', integer(), integer(), integer(), (a, b, c) => {40 return add(add(a, b), c) === add(a, add(b, c));41});42property('addition has identity', integer(), (a) => {43 return add(a, 0)
Using AI Code Generation
1const fc = require('fast-check');2const { generate } = require('fast-check/lib/check/arbitrary/AsyncProperty_generic');3const { run } = require('fast-check/lib/check/runner/AsyncProperty');4const { asyncProperty } = require('fast-check/lib/check/property/AsyncProperty');5const asyncProperty1 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {6 return a + b === b + a;7});8const asyncProperty2 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {9 return a + b === b + a;10});11const asyncProperty3 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {12 return a + b === b + a;13});14const asyncProperty4 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {15 return a + b === b + a;16});17const asyncProperty5 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {18 return a + b === b + a;19});20const asyncProperty6 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {21 return a + b === b + a;22});23const asyncProperty7 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {24 return a + b === b + a;25});26const asyncProperty8 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {27 return a + b === b + a;28});29const asyncProperty9 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {30 return a + b === b + a;31});32const asyncProperty10 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {33 return a + b === b + a;34});35const asyncProperty11 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {36 return a + b === b + a;37});38const asyncProperty12 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {39 return a + b === b + a;40});41const asyncProperty13 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {42 return a + b === b + a;43});44const asyncProperty14 = asyncProperty(fc.integer(), fc.integer(), (a, b) => {45 return a + b === b + a;46});
Using AI Code Generation
1const fc = require('./lib/fast-check.js');2const { seed } = require('./seed.js');3fc.configureGlobal({ verbose: true, seed: seed });4const { gen } = require('./lib/fast-check.js');5const genArray = gen.array(gen.nat, 1, 10);6const genArray2 = gen.array(gen.nat, 1, 10);7const genArray3 = gen.array(gen.nat, 1, 10);8const genArray4 = gen.array(gen.nat, 1, 10);9fc.assert(10 fc.property(11 (array, array2, array3, array4) => {12 console.log('array', array);13 console.log('array2', array2);14 console.log('array3', array3);15 console.log('array4', array4);16 return true;17 }18);
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!!